});\r
\r
test("filter()", function() {\r
- expect(5);\r
+ expect(4);\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("#ap, #sndp").get(), q("ap", "sndp"), "filter('String, String')" );\r
isSet( $("p").filter("#ap,#sndp").get(), q("ap", "sndp"), "filter('String,String')" );\r
isSet( $("p").filter(function() { return !$("a", this).length }).get(), q("sndp", "first"), "filter(Function)" );\r
test("not(String)", function() {\r
expect(2);\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
+ isSet( $("p").not("#ap, #sndp, .result").get(), q("firstp", "en", "sap", "first"), "not('selector, selector')" );\r
});\r
\r
\r
isSet( $("#ap a").gt(0).get(), q("groups", "anchor1", "mark"), "gt()" );\r
isSet( $("#ap a").lt(3).get(), q("google", "groups", "anchor1"), "lt()" );\r
isSet( $("#foo a").contains("log").get(), q("anchor2", "simon"), "contains()" );\r
-});
\ No newline at end of file
+});\r