);
}
- jQuery.ajax({
+ jQuery.ajax( {
url: "data/jsonp.php",
dataType: "jsonp",
crossDomain: crossDomain,
assert.strictEqual( this.jsonpCallback, previous.callback, "JSONP callback name is re-used" );
return false;
}
- });
+ } );
}
};
} );
assert.ok( false, "error" );
}
};
- });
+ } );
}
ajaxTest( "#14683 - jQuery.ajax() - Exceptions thrown synchronously by xhr.send should be caught", 4, function( assert ) {
}
);
-
-
// //----------- jQuery.ajaxPrefilter()
ajaxTest( "jQuery.ajaxPrefilter() - abort", 1, function( assert ) {
if ( jQuery.support.createHTMLDocument ) {
QUnit.asyncTest( "jQuery.parseHTML", function( assert ) {
- assert.expect ( 1 );
+ assert.expect( 1 );
Globals.register( "parseHTMLError" );
child.data( "notjson" ), " {}",
"JSON object with leading non-JSON read from attribute as string" );
assert.strictEqual(
- child.data("notjson2"), "[] ",
- "JSON array with trailing non-JSON read from attribute as string");
+ child.data( "notjson2" ), "[] ",
+ "JSON array with trailing non-JSON read from attribute as string" );
assert.strictEqual(
child.data( "empty" ), "", "Empty string read from attribute"
);
var key,
div = jQuery( "<div/>" );
- div.data("foo");
- assert.equal( false, jQuery.hasData( div[0] ) );
+ div.data( "foo" );
+ assert.equal( false, jQuery.hasData( div[ 0 ] ) );
+
// Make sure no expando has been added
for ( key in div[ 0 ] ) {
if ( /^jQuery/.test( key ) ) {
this.clock.tick( 10 );
} );
-QUnit.test("Animation callbacks (#11797)", function( assert ) {
+QUnit.test( "Animation callbacks (#11797)", function( assert ) {
assert.expect( 16 );
var prog = 0,
always: function() {
assert.step( 5 );
}
- }).finish();
+ } ).finish();
this.clock.tick( dur + 10 );
} );
var input = jQuery( frameDoc ).find( "#frame-input" );
// Create a focusin handler on the parent; shouldn't affect the iframe's fate
- jQuery ( "body" ).on( "focusin.iframeTest", function() {
+ jQuery( "body" ).on( "focusin.iframeTest", function() {
assert.ok( false, "fired a focusin event in the parent document" );
} );
}
QUnit.test( "text(String)", function( assert ) {
- testText(manipulationBareObj, assert );
+ testText( manipulationBareObj, assert );
} );
QUnit.test( "text(Function)", function( assert ) {
- testText(manipulationFunctionReturningObj, assert );
+ testText( manipulationFunctionReturningObj, assert );
} );
QUnit.test( "text(Function) with incoming value", function( assert ) {
assert.expect( 78 );
- testAppendForObject( valueObj,false, assert );
- testAppendForObject( valueObj,true, assert );
+ testAppendForObject( valueObj, false, assert );
+ testAppendForObject( valueObj, true, assert );
var defaultText, result, message, iframe, iframeDoc, j, d,
$input, $radioChecked, $radioUnchecked, $radioParent, $map, $table;
}
QUnit.test( "append(String|Element|Array<Element>|jQuery)", function( assert ) {
- testAppend(manipulationBareObj, assert );
+ testAppend( manipulationBareObj, assert );
} );
QUnit.test( "append(Function)", function( assert ) {
- testAppend(manipulationFunctionReturningObj, assert );
+ testAppend( manipulationFunctionReturningObj, assert );
} );
QUnit.test( "append(param) to object, see #11280", function( assert ) {