diff options
author | John Resig <jeresig@gmail.com> | 2007-02-22 21:54:56 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-02-22 21:54:56 +0000 |
commit | 4259b02c99202092d222fc7ca19c1ab83df7eafa (patch) | |
tree | aede8b38f7fc34705aad140976d2781b8cfc6fc5 /src | |
parent | bb0ce1550da91e861faf7650b4617621ec14bfa8 (diff) | |
download | jquery-4259b02c99202092d222fc7ca19c1ab83df7eafa.tar.gz jquery-4259b02c99202092d222fc7ca19c1ab83df7eafa.zip |
Added a test case for bug #986.
Diffstat (limited to 'src')
-rw-r--r-- | src/selector/selectorTest.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js index 4d25c6076..be216f8bf 100644 --- a/src/selector/selectorTest.js +++ b/src/selector/selectorTest.js @@ -11,12 +11,12 @@ test("expressions - element", function() { });
test("expressions - id", function() {
- expect(10);
+ expect(11);
t( "ID Selector", "#body", ["body"] );
t( "ID Selector w/ Element", "body#body", ["body"] );
t( "ID Selector w/ Element", "ul#first", [] );
t( "ID selector with existing ID descendant", "#firstp #simon1", ["simon1"] );
- t( "ID selector with non-existing descendant", "#firstp #foobar", [] );
+ t( "ID selector with non-existant descendant", "#firstp #foobar", [] );
t( "ID Selector, child ID present", "#form > #radio1", ["radio1"] ); // bug #267
t( "ID Selector, not an ancestor ID", "#form #first", [] );
@@ -25,6 +25,7 @@ test("expressions - id", function() { t( "All Children of ID", "#foo/*", ["sndp", "en", "sap"] );
t( "All Children of ID with no children", "#firstUL/*", [] );
+ t( "ID selector with non-existant ancestor", "#asdfasdf #foobar", [] );
});
@@ -146,4 +147,4 @@ test("expressions - basic xpath", function() { $("#foo").each(function() {
isSet( $("/p", this).get(), q("sndp", "en", "sap"), "Check XPath context" );
});
-});
\ No newline at end of file +});
|