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
+ isSet( $("p").filter(function() { return !$("a", this).length }).get(), q("sndp", "first"), "filter(Function)" );\r
});\r
\r
test("not(String)", function() {\r
ok( pass, "Set HTML" );\r
});\r
\r
-test("id()", function() {\r
- expect(3);\r
- ok( $(document.getElementById('main')).id() == "main", "Check for id" );\r
- ok( $("#foo").id() == "foo", "Check for id" );\r
- ok( !$("head").id(), "Check for id" );\r
-});\r
-\r
-test("title()", function() {\r
- expect(2);\r
- ok( $(document.getElementById('google')).title() == "Google!", "Check for title" );\r
- ok( !$("#yahoo").title(), "Check for title" );\r
-});\r
-\r
-test("name()", function() {\r
- expect(3);\r
- ok( $(document.getElementById('text1')).name() == "action", "Check for name" );\r
- ok( $("#hidden1").name() == "hidden", "Check for name" );\r
- ok( !$("#area1").name(), "Check for name" );\r
-});\r
-\r
-\r
test("siblings([String])", function() {\r
expect(3);\r
isSet( $("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" );\r