mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Disabled the Ajax tests from running locally.
This commit is contained in:
parent
595d125365
commit
b453257653
@ -5,6 +5,8 @@ module("ajax");
|
|||||||
// tests and they'll pass
|
// tests and they'll pass
|
||||||
//if ( !jQuery.browser.safari ) {
|
//if ( !jQuery.browser.safari ) {
|
||||||
|
|
||||||
|
if ( !isLocal ) {
|
||||||
|
|
||||||
test("$.ajax() - success callbacks", function() {
|
test("$.ajax() - success callbacks", function() {
|
||||||
expect( 8 );
|
expect( 8 );
|
||||||
|
|
||||||
@ -38,7 +40,6 @@ test("$.ajax() - success callbacks", function() {
|
|||||||
}, 13);
|
}, 13);
|
||||||
});
|
});
|
||||||
|
|
||||||
if ( !isLocal ) {
|
|
||||||
test("$.ajax() - error callbacks", function() {
|
test("$.ajax() - error callbacks", function() {
|
||||||
expect( 8 );
|
expect( 8 );
|
||||||
stop();
|
stop();
|
||||||
@ -68,7 +69,6 @@ if ( !isLocal ) {
|
|||||||
complete: function(){ ok(true, "complete"); }
|
complete: function(){ ok(true, "complete"); }
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
test("$.ajax() - disabled globals", function() {
|
test("$.ajax() - disabled globals", function() {
|
||||||
expect( 3 );
|
expect( 3 );
|
||||||
@ -346,8 +346,6 @@ test("$.getScript(String, Function) - no callback", function() {
|
|||||||
$.getScript(url("data/test.js"), start);
|
$.getScript(url("data/test.js"), start);
|
||||||
});
|
});
|
||||||
|
|
||||||
if ( !isLocal ) {
|
|
||||||
|
|
||||||
test("$.ajax() - JSONP, Local", function() {
|
test("$.ajax() - JSONP, Local", function() {
|
||||||
expect(7);
|
expect(7);
|
||||||
|
|
||||||
|
@ -213,6 +213,7 @@ test("attr(String)", function() {
|
|||||||
ok( $('#tAnchor5').attr('href') == "#5", 'Check for non-absolute href (an anchor)' );
|
ok( $('#tAnchor5').attr('href') == "#5", 'Check for non-absolute href (an anchor)' );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if ( !isLocal ) {
|
||||||
test("attr(String) in XML Files", function() {
|
test("attr(String) in XML Files", function() {
|
||||||
expect(2);
|
expect(2);
|
||||||
stop();
|
stop();
|
||||||
@ -222,6 +223,7 @@ test("attr(String) in XML Files", function() {
|
|||||||
start();
|
start();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
test("attr(String, Function)", function() {
|
test("attr(String, Function)", function() {
|
||||||
expect(2);
|
expect(2);
|
||||||
@ -286,6 +288,7 @@ test("attr(String, Object)", function() {
|
|||||||
equals( "checkbox", $(check).attr('type'), "Verify that you can change the type of an input element that isn't in the DOM" );
|
equals( "checkbox", $(check).attr('type'), "Verify that you can change the type of an input element that isn't in the DOM" );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if ( !isLocal ) {
|
||||||
test("attr(String, Object) - Loaded via XML document", function() {
|
test("attr(String, Object) - Loaded via XML document", function() {
|
||||||
expect(2);
|
expect(2);
|
||||||
stop();
|
stop();
|
||||||
@ -299,6 +302,7 @@ test("attr(String, Object) - Loaded via XML document", function() {
|
|||||||
start();
|
start();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
test("css(String|Hash)", function() {
|
test("css(String|Hash)", function() {
|
||||||
expect(19);
|
expect(19);
|
||||||
|
Loading…
Reference in New Issue
Block a user