test("filter()", function() {\r
isSet( $("input").filter(":checked").get(), q("radio2", "check1"), "filter(String)" );\r
isSet( $("p").filter(["#ap", "#sndp"]).get(), q("ap", "sndp"), "filter(Array<String>)" );\r
+ isSet( $("p").filter(function(el) { return !$("a", el).length }).get(), q("sndp", "first"), "filter(Function)" );\r
});\r
\r
test("not(String)", function() {\r
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