]> source.dussan.org Git - jquery.git/commitdiff
Added a test case for bug #986.
authorJohn Resig <jeresig@gmail.com>
Thu, 22 Feb 2007 21:54:56 +0000 (21:54 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 22 Feb 2007 21:54:56 +0000 (21:54 +0000)
src/selector/selectorTest.js

index 4d25c6076e4fd611f9993d47f1e5f23bdefc26aa..be216f8bf827eca8917d841170150f1efa6e6faa 100644 (file)
@@ -11,12 +11,12 @@ test("expressions - element", function() {
 });\r
 \r
 test("expressions - id", function() {\r
-       expect(10);\r
+       expect(11);\r
        t( "ID Selector", "#body", ["body"] );\r
        t( "ID Selector w/ Element", "body#body", ["body"] );\r
        t( "ID Selector w/ Element", "ul#first", [] );\r
        t( "ID selector with existing ID descendant", "#firstp #simon1", ["simon1"] );\r
-       t( "ID selector with non-existing descendant", "#firstp #foobar", [] );\r
+       t( "ID selector with non-existant descendant", "#firstp #foobar", [] );\r
        \r
        t( "ID Selector, child ID present", "#form > #radio1", ["radio1"] );  // bug #267\r
        t( "ID Selector, not an ancestor ID", "#form  #first", [] );\r
@@ -25,6 +25,7 @@ test("expressions - id", function() {
        t( "All Children of ID", "#foo/*", ["sndp", "en", "sap"] );\r
        t( "All Children of ID with no children", "#firstUL/*", [] );\r
        \r
+       t( "ID selector with non-existant ancestor", "#asdfasdf #foobar", [] );\r
 });\r
 \r
 \r
@@ -146,4 +147,4 @@ test("expressions - basic xpath", function() {
        $("#foo").each(function() {\r
                isSet( $("/p", this).get(), q("sndp", "en", "sap"), "Check XPath context" );\r
        });\r
-});
\ No newline at end of file
+});\r