Skip to content

Commit

Permalink
Corrected method name. Fixes #2649.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Evans committed Oct 30, 2015
1 parent 0dc69df commit 5168604
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/standard/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
},

queryAllEffectiveChildren: function(slctr) {
return Polymer.dom(this).queryAllDistributedElements(slctr);
return Polymer.dom(this).queryDistributedElements(slctr);
},

/**
Expand Down
12 changes: 12 additions & 0 deletions test/unit/utils-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@
assert.equal(text.replace(/\s/g, ''), 'abcde');
});

test('queryAllEffectiveChildren', function() {
var nodes = elt7.$.content.queryAllEffectiveChildren('div:not(.a)');
var aNode = elt7.$.content.queryAllEffectiveChildren('.a');
assert.equal(nodes.length, 4);
assert.equal(aNode.length, 1);
assert.ok(nodes[0].classList.contains('b'));
assert.ok(nodes[1].classList.contains('c'));
assert.ok(nodes[2].classList.contains('d'));
assert.ok(nodes[3].classList.contains('e'));
});


});

suite('isLight/Local descendant utils', function() {
Expand Down

0 comments on commit 5168604

Please sign in to comment.