aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2007-12-17 19:01:25 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2007-12-17 19:01:25 +0000
commitce4ab8a60e17ceafc3e67ddf4cc1b0526841a459 (patch)
tree079c7484fcbf1554cf0df446ff6d6b9e2d28b854
parent70ae356e4ed1f74bb008939b345437fbe7deb26d (diff)
downloadjquery-ce4ab8a60e17ceafc3e67ddf4cc1b0526841a459.tar.gz
jquery-ce4ab8a60e17ceafc3e67ddf4cc1b0526841a459.zip
test for #2070
-rw-r--r--test/unit/core.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/core.js b/test/unit/core.js
index ea687c8f8..170be21c3 100644
--- a/test/unit/core.js
+++ b/test/unit/core.js
@@ -1058,7 +1058,7 @@ test("filter()", function() {
});
test("not()", function() {
- expect(7);
+ expect(8);
ok( $("#main > p#ap > a").not("#google").length == 2, "not('selector')" );
ok( $("#main > p#ap > a").not(document.getElementById("google")).length == 2, "not(DOMElement)" );
isSet( $("p").not(".result").get(), q("firstp", "ap", "sndp", "en", "sap", "first"), "not('.class')" );
@@ -1066,6 +1066,9 @@ test("not()", function() {
isSet( $("p").not($("#ap, #sndp, .result")).get(), q("firstp", "en", "sap", "first"), "not(jQuery)" );
ok( $("p").not(document.getElementsByTagName("p")).length == 0, "not(Array-like DOM collection)" );
isSet( $("#form option").not("option.emptyopt:contains('Nothing'),[selected],[value='1']").get(), q("option1c", "option1d", "option2c", "option3d" ), "not('complex selector')");
+
+ var selects = $("#form select");
+ isSet( selects.not( selects[1] ), ["select1", "select3"], "filter out DOM element");
});
test("andSelf()", function() {