Disabled the Ajax tests from running locally.

This commit is contained in:
John Resig 2007-09-23 15:58:49 +00:00
parent 595d125365
commit b453257653
2 changed files with 57 additions and 55 deletions

View file

@ -5,6 +5,8 @@ module("ajax");
// tests and they'll pass
//if ( !jQuery.browser.safari ) {
if ( !isLocal ) {
test("$.ajax() - success callbacks", function() {
expect( 8 );
@ -38,8 +40,7 @@ test("$.ajax() - success callbacks", function() {
}, 13);
});
if ( !isLocal ) {
test("$.ajax() - error callbacks", function() {
test("$.ajax() - error callbacks", function() {
expect( 8 );
stop();
@ -67,8 +68,7 @@ if ( !isLocal ) {
error: function(){ ok(true, "error"); },
complete: function(){ ok(true, "complete"); }
});
});
}
});
test("$.ajax() - disabled globals", function() {
expect( 3 );
@ -346,8 +346,6 @@ test("$.getScript(String, Function) - no callback", function() {
$.getScript(url("data/test.js"), start);
});
if ( !isLocal ) {
test("$.ajax() - JSONP, Local", function() {
expect(7);

View file

@ -213,7 +213,8 @@ test("attr(String)", function() {
ok( $('#tAnchor5').attr('href') == "#5", 'Check for non-absolute href (an anchor)' );
});
test("attr(String) in XML Files", function() {
if ( !isLocal ) {
test("attr(String) in XML Files", function() {
expect(2);
stop();
$.get("data/dashboard.xml", function(xml) {
@ -221,7 +222,8 @@ test("attr(String) in XML Files", function() {
ok( $("location", xml).attr("for") == "bar", "Check for attribute in XML document" );
start();
});
});
});
}
test("attr(String, Function)", function() {
expect(2);
@ -286,7 +288,8 @@ 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" );
});
test("attr(String, Object) - Loaded via XML document", function() {
if ( !isLocal ) {
test("attr(String, Object) - Loaded via XML document", function() {
expect(2);
stop();
$.get('data/dashboard.xml', function(xml) {
@ -298,7 +301,8 @@ test("attr(String, Object) - Loaded via XML document", function() {
ok( titles[1] == 'Users', 'attr() in XML context: Check second title' );
start();
});
});
});
}
test("css(String|Hash)", function() {
expect(19);