X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=d7fa5c7cca85a6a2815c9c721212863ab8a97ec4;hb=41f62e13643462a88fa7d9015346196f3d37b966;hp=2692715fade51ea01be2629c9bf1a50429522f8a;hpb=ac78ad07c2a18a18ec7ce93d56824a55d56768bc;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 2692715..d7fa5c7 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -426,3 +426,17 @@ test("removeClass(String) - add three classes and remove again", function() { test("removeAttr(String", function() { ok( $('#mark').removeAttr("class")[0].className == "", "remove class" ); }); + +test("evalScripts() with no script elements", function() { + expect(2); + stop(); + $.ajax({ + url: 'data/text.php?' + new Date().getTime(), + success: function(data, status) { + ok ( true, 'before evalScripts()'); + jQuery('#output').html(data).evalScripts(); + ok ( true, 'after evalScripts()'); + start(); + } + }); +});