X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax%2FajaxTest.js;h=23a76fd49c74297735d853654939866b5ac395f8;hb=2c99c18652b9a098252d5443506c03fd45b2e2dc;hp=b215d95a8604f6c410a8f81f9593a2bf4fbee99e;hpb=386c0bc8a686eaa90be12dd1c6690668ff7442c7;p=jquery.git diff --git a/src/ajax/ajaxTest.js b/src/ajax/ajaxTest.js index b215d95..23a76fd 100644 --- a/src/ajax/ajaxTest.js +++ b/src/ajax/ajaxTest.js @@ -1,5 +1,7 @@ module("ajax"); +if ( location.protocol != "file:" ) { + test("serialize()", function() { expect(1); var data = $(':input').not('button').serialize(); @@ -68,8 +70,8 @@ test("load(String, Object, Function) - inject without callback", function() { test("load(String, Object, Function) - check scripts", function() { expect(7); stop(); - testFoo = undefined; - foobar = null; + window.testFoo = undefined; + window.foobar = null; var verifyEvaluation = function() { ok( foobar == "bar", 'Check if script src was evaluated after load' ); ok( $('#ap').html() == 'bar', 'Check if script evaluation has modified DOM'); @@ -376,3 +378,5 @@ test("evalScripts() with no script elements", function() { } ok ( true, 'after evalScripts()'); }); + +}