Index: test/common.js |
=================================================================== |
--- a/test/common.js |
+++ b/test/common.js |
@@ -51,16 +51,18 @@ |
// Compound selectors with universal selector. |
test.equal(qualifySelector("#foo *", "div"), "#foo div"); |
test.equal(qualifySelector(".foo *", "div"), ".foo div"); |
test.equal(qualifySelector("div *", "#foo"), "div #foo"); |
test.equal(qualifySelector("div *", ".foo"), "div .foo"); |
test.equal(qualifySelector("div#bar *", ".foo"), "div#bar .foo"); |
test.equal(qualifySelector("div.bar *", "#foo"), "div.bar #foo"); |
+ test.equal(qualifySelector("body *#foo", "div"), "body div#foo"); |
+ test.equal(qualifySelector("body *.foo", "div"), "body div.foo"); |
// Compound selectors with pseudo-class with parentheses. |
test.equal(qualifySelector("body #foo:nth-child(1)", "div"), |
"body div#foo:nth-child(1)"); |
test.equal(qualifySelector("body .foo:nth-child(1)", "div"), |
"body div.foo:nth-child(1)"); |
test.equal(qualifySelector("body div:nth-child(1)", "#foo"), |
"body div#foo:nth-child(1)"); |