update target of evalScripts test
[jquery.git] / src / jquery / coreTest.js
index 2692715..dcb00ab 100644 (file)
@@ -426,3 +426,17 @@ test("removeClass(String) - add three classes and remove again", function() {
 test("removeAttr(String", function() {\r
        ok( $('#mark').removeAttr("class")[0].className == "", "remove class" );\r
 });\r
+\r
+test("evalScripts() with no script elements", function() {\r
+    expect(2);\r
+    stop();\r
+    $.ajax({\r
+        url: 'data/text.php?' + new Date().getTime(),\r
+        success: function(data, status) {\r
+            ok ( true, 'before evalScripts()');\r
+            jQuery('#foo').html(data).evalScripts();\r
+            ok ( true, 'after evalScripts()');\r
+            start();\r
+        }\r
+    });\r
+});\r