Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/common.js

Issue 30014561: Issue 7291 - Handle *.foo in qualifySelector() (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created Feb. 22, 2019, 3:20 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/common.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)");
« no previous file with comments | « lib/common.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld