Merge branch 'master' of github.com:jquery/jquery
This commit is contained in:
commit
efea0f23f9
24 changed files with 222 additions and 128 deletions
|
@ -15,6 +15,15 @@
|
|||
p.instructions { position: absolute; bottom: 0; }
|
||||
#positionTest { position: absolute; }
|
||||
</style>
|
||||
<script src="../../../src/core.js"></script>
|
||||
<script src="../../../src/support.js"></script>
|
||||
<script src="../../../src/sizzle/sizzle.js"></script>
|
||||
<script src="../../../src/sizzle-jquery.js"></script>
|
||||
<script src="../../../src/traversing.js"></script>
|
||||
<script src="../../../src/data.js"></script>
|
||||
<script src="../../../src/event.js"></script>
|
||||
<script src="../../../src/css.js"></script>
|
||||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
|
@ -38,4 +47,4 @@
|
|||
<div id="marker"></div>
|
||||
<p class="instructions">Click the white box to move the marker to it. Clicking the box also changes the position to absolute (if not already) and sets the position according to the position method.</p>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -8,7 +8,15 @@
|
|||
body { margin: 1px; padding: 5px; }
|
||||
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
||||
</style>
|
||||
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
||||
<script src="../../../src/core.js"></script>
|
||||
<script src="../../../src/support.js"></script>
|
||||
<script src="../../../src/sizzle/sizzle.js"></script>
|
||||
<script src="../../../src/sizzle-jquery.js"></script>
|
||||
<script src="../../../src/traversing.js"></script>
|
||||
<script src="../../../src/data.js"></script>
|
||||
<script src="../../../src/event.js"></script>
|
||||
<script src="../../../src/css.js"></script>
|
||||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
$('body').click(function() {
|
||||
|
|
|
@ -12,7 +12,15 @@
|
|||
#forceScroll { width: 5000px; height: 5000px; }
|
||||
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
||||
</style>
|
||||
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
||||
<script src="../../../src/core.js"></script>
|
||||
<script src="../../../src/support.js"></script>
|
||||
<script src="../../../src/sizzle/sizzle.js"></script>
|
||||
<script src="../../../src/sizzle-jquery.js"></script>
|
||||
<script src="../../../src/traversing.js"></script>
|
||||
<script src="../../../src/data.js"></script>
|
||||
<script src="../../../src/event.js"></script>
|
||||
<script src="../../../src/css.js"></script>
|
||||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
window.scrollTo(1000,1000);
|
||||
|
|
|
@ -10,7 +10,15 @@
|
|||
#relative-2 { top: 20px; left: 20px; }
|
||||
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
||||
</style>
|
||||
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
||||
<script src="../../../src/core.js"></script>
|
||||
<script src="../../../src/support.js"></script>
|
||||
<script src="../../../src/sizzle/sizzle.js"></script>
|
||||
<script src="../../../src/sizzle-jquery.js"></script>
|
||||
<script src="../../../src/traversing.js"></script>
|
||||
<script src="../../../src/data.js"></script>
|
||||
<script src="../../../src/event.js"></script>
|
||||
<script src="../../../src/css.js"></script>
|
||||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
$('.relative').click(function() {
|
||||
|
|
|
@ -13,7 +13,15 @@
|
|||
#forceScroll { width: 5000px; height: 5000px; }
|
||||
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
||||
</style>
|
||||
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
||||
<script src="../../../src/core.js"></script>
|
||||
<script src="../../../src/support.js"></script>
|
||||
<script src="../../../src/sizzle/sizzle.js"></script>
|
||||
<script src="../../../src/sizzle-jquery.js"></script>
|
||||
<script src="../../../src/traversing.js"></script>
|
||||
<script src="../../../src/data.js"></script>
|
||||
<script src="../../../src/event.js"></script>
|
||||
<script src="../../../src/css.js"></script>
|
||||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
window.scrollTo(1000,1000);
|
||||
|
|
|
@ -10,7 +10,15 @@
|
|||
#static-2 { top: 20px; left: 20px; }
|
||||
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
||||
</style>
|
||||
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
||||
<script src="../../../src/core.js"></script>
|
||||
<script src="../../../src/support.js"></script>
|
||||
<script src="../../../src/sizzle/sizzle.js"></script>
|
||||
<script src="../../../src/sizzle-jquery.js"></script>
|
||||
<script src="../../../src/traversing.js"></script>
|
||||
<script src="../../../src/data.js"></script>
|
||||
<script src="../../../src/event.js"></script>
|
||||
<script src="../../../src/css.js"></script>
|
||||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
$('.static').click(function() {
|
||||
|
|
|
@ -10,7 +10,15 @@
|
|||
th, td { border: 1px solid #000; width: 100px; height: 100px; }
|
||||
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
||||
</style>
|
||||
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
||||
<script src="../../../src/core.js"></script>
|
||||
<script src="../../../src/support.js"></script>
|
||||
<script src="../../../src/sizzle/sizzle.js"></script>
|
||||
<script src="../../../src/sizzle-jquery.js"></script>
|
||||
<script src="../../../src/traversing.js"></script>
|
||||
<script src="../../../src/data.js"></script>
|
||||
<script src="../../../src/event.js"></script>
|
||||
<script src="../../../src/css.js"></script>
|
||||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
$('table, th, td').click(function() {
|
||||
|
|
|
@ -1 +1,11 @@
|
|||
jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.
|
||||
|
||||
// load testswarm agent
|
||||
(function() {
|
||||
var url = window.location.search;
|
||||
url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
|
||||
if ( !url || url.indexOf("http") !== 0 ) {
|
||||
return;
|
||||
}
|
||||
document.write("<scr" + "ipt src='http://swarm.jquery.org/js/inject.js?" + (new Date).getTime() + "'></scr" + "ipt>");
|
||||
})();
|
||||
|
|
|
@ -6,23 +6,40 @@
|
|||
<link rel="Stylesheet" media="screen" href="qunit/qunit/qunit.css" />
|
||||
<link rel="Stylesheet" media="screen" href="data/testsuite.css" />
|
||||
<!-- Includes -->
|
||||
<script type="text/javascript" src="data/testinit.js"></script>
|
||||
<script type="text/javascript" src="../dist/jquery.js"></script>
|
||||
<script type="text/javascript" src="qunit/qunit/qunit.js"></script>
|
||||
<script type="text/javascript" src="data/testrunner.js"></script>
|
||||
<script type="text/javascript" src="unit/core.js"></script>
|
||||
<script type="text/javascript" src="unit/data.js"></script>
|
||||
<script type="text/javascript" src="unit/queue.js"></script>
|
||||
<script type="text/javascript" src="unit/attributes.js"></script>
|
||||
<script type="text/javascript" src="unit/css.js"></script>
|
||||
<script type="text/javascript" src="unit/traversing.js"></script>
|
||||
<script type="text/javascript" src="unit/manipulation.js"></script>
|
||||
<script type="text/javascript" src="unit/dimensions.js"></script>
|
||||
<script type="text/javascript" src="unit/selector.js"></script>
|
||||
<script type="text/javascript" src="unit/event.js"></script>
|
||||
<script type="text/javascript" src="unit/ajax.js"></script>
|
||||
<script type="text/javascript" src="unit/effects.js"></script>
|
||||
<script type="text/javascript" src="unit/offset.js"></script>
|
||||
<script src="data/testinit.js"></script>
|
||||
|
||||
<script src="../src/core.js"></script>
|
||||
<script src="../src/support.js"></script>
|
||||
<script src="../src/data.js"></script>
|
||||
<script src="../src/queue.js"></script>
|
||||
<script src="../src/attributes.js"></script>
|
||||
<script src="../src/event.js"></script>
|
||||
<script src="../src/sizzle/sizzle.js"></script>
|
||||
<script src="../src/sizzle-jquery.js"></script>
|
||||
<script src="../src/traversing.js"></script>
|
||||
<script src="../src/manipulation.js"></script>
|
||||
<script src="../src/css.js"></script>
|
||||
<script src="../src/ajax.js"></script>
|
||||
<script src="../src/effects.js"></script>
|
||||
<script src="../src/offset.js"></script>
|
||||
<script src="../src/dimensions.js"></script>
|
||||
|
||||
<script src="qunit/qunit/qunit.js"></script>
|
||||
<script src="data/testrunner.js"></script>
|
||||
|
||||
<script src="unit/core.js"></script>
|
||||
<script src="unit/data.js"></script>
|
||||
<script src="unit/queue.js"></script>
|
||||
<script src="unit/attributes.js"></script>
|
||||
<script src="unit/event.js"></script>
|
||||
<script src="unit/selector.js"></script>
|
||||
<script src="unit/traversing.js"></script>
|
||||
<script src="unit/manipulation.js"></script>
|
||||
<script src="unit/css.js"></script>
|
||||
<script src="unit/ajax.js"></script>
|
||||
<script src="unit/effects.js"></script>
|
||||
<script src="unit/offset.js"></script>
|
||||
<script src="unit/dimensions.js"></script>
|
||||
</head>
|
||||
|
||||
<body id="body">
|
||||
|
|
|
@ -774,7 +774,7 @@ test("jQuery.ajax() - JSONP, Remote", function() {
|
|||
var count = 0;
|
||||
function plus(){ if ( ++count == 4 ) start(); }
|
||||
|
||||
var base = window.location.href.replace(/\?.*$/, "");
|
||||
var base = window.location.href.replace(/[^\/]*$/, "");
|
||||
|
||||
stop();
|
||||
|
||||
|
@ -836,7 +836,7 @@ test("jQuery.ajax() - JSONP, Remote", function() {
|
|||
test("jQuery.ajax() - script, Remote", function() {
|
||||
expect(2);
|
||||
|
||||
var base = window.location.href.replace(/\?.*$/, "");
|
||||
var base = window.location.href.replace(/[^\/]*$/, "");
|
||||
|
||||
stop();
|
||||
|
||||
|
@ -853,7 +853,7 @@ test("jQuery.ajax() - script, Remote", function() {
|
|||
test("jQuery.ajax() - script, Remote with POST", function() {
|
||||
expect(3);
|
||||
|
||||
var base = window.location.href.replace(/\?.*$/, "");
|
||||
var base = window.location.href.replace(/[^\/]*$/, "");
|
||||
|
||||
stop();
|
||||
|
||||
|
@ -876,7 +876,7 @@ test("jQuery.ajax() - script, Remote with POST", function() {
|
|||
test("jQuery.ajax() - script, Remote with scheme-less URL", function() {
|
||||
expect(2);
|
||||
|
||||
var base = window.location.href.replace(/\?.*$/, "");
|
||||
var base = window.location.href.replace(/[^\/]*$/, "");
|
||||
base = base.replace(/^.*?\/\//, "//");
|
||||
|
||||
stop();
|
||||
|
@ -991,7 +991,7 @@ test("jQuery.getJSON - Using Native JSON", function() {
|
|||
test("jQuery.getJSON(String, Function) - JSON object with absolute url to local content", function() {
|
||||
expect(2);
|
||||
|
||||
var base = window.location.href.replace(/\?.*$/, "");
|
||||
var base = window.location.href.replace(/[^\/]*$/, "");
|
||||
|
||||
stop();
|
||||
jQuery.getJSON(url(base + "data/json.php"), function(json) {
|
||||
|
|
|
@ -482,8 +482,10 @@ test("addClass(Function) with incoming value", function() {
|
|||
});
|
||||
|
||||
div.addClass(function(i, val) {
|
||||
equals( val, old[i], "Make sure the incoming value is correct." );
|
||||
return "test";
|
||||
if ( this.id !== "_firebugConsole" ) {
|
||||
equals( val, old[i], "Make sure the incoming value is correct." );
|
||||
return "test";
|
||||
}
|
||||
});
|
||||
|
||||
var pass = true;
|
||||
|
@ -553,8 +555,10 @@ test("removeClass(Function) with incoming value", function() {
|
|||
});
|
||||
|
||||
$divs.removeClass(function(i, val) {
|
||||
equals( val, old[i], "Make sure the incoming value is correct." );
|
||||
return "test";
|
||||
if ( this.id !== "_firebugConsole" ) {
|
||||
equals( val, old[i], "Make sure the incoming value is correct." );
|
||||
return "test";
|
||||
}
|
||||
});
|
||||
|
||||
ok( !$divs.is('.test'), "Remove Class" );
|
||||
|
|
|
@ -26,7 +26,7 @@ function testWidth( val ) {
|
|||
|
||||
$div.css({ display: "", border: "", padding: "" });
|
||||
|
||||
jQuery("#nothiddendivchild").css({ padding: "3px", border: "2px solid #fff" });
|
||||
jQuery("#nothiddendivchild").css({ width: 20, padding: "3px", border: "2px solid #fff" });
|
||||
equals(jQuery("#nothiddendivchild").width(), 20, "Test child width with border and padding");
|
||||
jQuery("#nothiddendiv, #nothiddendivchild").css({ border: "", padding: "", width: "" });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue