Skip to content

Commit

Permalink
Merge pull request #30 from jugglinmike/failing-test
Browse files Browse the repository at this point in the history
scope regression
  • Loading branch information
fb55 committed Jul 4, 2015
2 parents 981eba8 + f84e3da commit 92bcaa0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/api.js
Expand Up @@ -31,6 +31,17 @@ describe("API", function(){
//probably more cases should be added here
});

describe("selectAll", function(){
it("should query array elements directly when they have no parents", function() {
var divs = [dom];
assert.deepEqual(CSSselect("div", divs), divs);
});
it("should query array elements directly when they have parents", function() {
var ps = CSSselect("p", [dom]);
assert.deepEqual(CSSselect("p", ps), ps);
});
});

describe("unsatisfiable and universally valid selectors", function(){
it("in :not", function(){
var func = CSSselect._compileUnsafe(":not(*)");
Expand Down

0 comments on commit 92bcaa0

Please sign in to comment.