This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -2348,25 +2348,24 @@ QUnit.test( "Ensure oldIE creates a new set on appendTo (#8894)", function( asse
assert.strictEqual(jQuery("<p/>").appendTo("<div/>").end().length,jQuery("<p>test</p>").appendTo("<div/>").end().length,"Elements created with createElement and with createDocumentFragment should be treated alike");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This assumes that QUnit tests are run on DOM ready!
QUnit.test("jQuery ready",function(){
expect(10);
QUnit.test("jQuery ready",function(){
expect(10);
ok(noEarlyExecution,"Handlers bound to DOM ready should not execute before DOM ready");
ok(noEarlyExecution,"Handlers bound to DOM ready should not execute before DOM ready");
// Ensure execution order.
deepEqual(order,["a","b","d","e","c","f"],"Bound DOM ready handlers should execute in on-order, but those bound with jQuery(document).on( 'ready', fn ) will always execute last");
deepEqual(order,["a","b","d","e","c","f"],"Bound DOM ready handlers should execute in on-order, but those bound with jQuery(document).on( 'ready', fn ) will always execute last");
// Ensure handler argument is correct.
equal(args["a"],jQuery,"Argument passed to fn in jQuery( fn ) should be jQuery");
equal(args["b"],jQuery,"Argument passed to fn in jQuery(document).ready( fn ) should be jQuery");
ok(args["c"]instanceofjQuery.Event,"Argument passed to fn in jQuery(document).on( 'ready', fn ) should be an event object");
equal(args["a"],jQuery,"Argument passed to fn in jQuery( fn ) should be jQuery");
equal(args["b"],jQuery,"Argument passed to fn in jQuery(document).ready( fn ) should be jQuery");
ok(args["c"]instanceofjQuery.Event,"Argument passed to fn in jQuery(document).on( 'ready', fn ) should be an event object");
order=[];
// Now that the ready event has fired, again bind to the ready event
// in every possible way. These event handlers should execute immediately.
jQuery(makeHandler("g"));
equal(order.pop(),"g","Event handler should execute immediately");
equal(args["g"],jQuery,"Argument passed to fn in jQuery( fn ) should be jQuery");
jQuery(makeHandler("g"));
equal(order.pop(),"g","Event handler should execute immediately");
equal(args["g"],jQuery,"Argument passed to fn in jQuery( fn ) should be jQuery");
jQuery(document).ready(makeHandler("h"));
equal(order.pop(),"h","Event handler should execute immediately");
equal(args["h"],jQuery,"Argument passed to fn in jQuery(document).ready( fn ) should be jQuery");
jQuery(document).ready(makeHandler("h"));
equal(order.pop(),"h","Event handler should execute immediately");
equal(args["h"],jQuery,"Argument passed to fn in jQuery(document).ready( fn ) should be jQuery");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assert.equal(jQuery.param(params),"a=0&a=1%2C2&a=3%2C4%2C5%2C6&a=%5Bobject+Object%5D&a=17","nested arrays (not possible when jQuery.param.traditional == true)");
assert.equal(decodeURIComponent(jQuery.param(params,false)),"a[]=1&a[]=2&b[c]=3&b[d][]=4&b[d][]=5&b[e][x][]=6&b[e][y]=7&b[e][z][]=8&b[e][z][]=9&b[f]=true&b[g]=false&b[h]=&i[]=10&i[]=11&j=true&k=false&l[]=&l[]=0&m=cowboy+hat?","huge structure, forced not traditional");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters