isSet( $("p").filter(["#ap", "#sndp"]).get(), q("ap", "sndp"), "filter(Array<String>)" );\r
});\r
\r
-test("filter(String) - execute callback in fitting context", function() {\r
- expect(1);\r
- $("input").filter(":checked",function(i){ \r
- ok( this == q("radio2", "check1")[i], "Filter elements, context" );\r
- });\r
-});\r
-\r
-test("filter(String) - execute callback in not-fitting context", function() {\r
- expect(1);\r
- $("#main > p#ap > a").filter("#foobar",function(){},function(i){\r
- ok( this == q("google","groups", "mark")[i], "Filter elements, else context" );\r
- });\r
-});\r
-\r
test("not(String)", function() {\r
ok($("#main > p#ap > a").not("#google").length == 2, "not('selector')")\r
isSet( $("p").not("#ap, #sndp").get(), q("firstp", "en", "sap", "first", "result"), "not('selector, selector')" );\r
if ( div.get(i).className.match(/test|bar|foo/) ) pass = false;\r
}\r
ok( pass, "Remove multiple classes" );\r
+});\r
+\r
+test("removeAttr(String", function() {\r
+ ok( $('#mark').removeAttr("class")[0].className == "", "remove class" );\r
});
\ No newline at end of file