mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2656 from Polymer/polymer-2649
Corrected method name. Fixes #2649.
This commit is contained in:
commit
e72fdeed6e
@ -158,7 +158,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
},
|
||||
|
||||
queryAllEffectiveChildren: function(slctr) {
|
||||
return Polymer.dom(this).queryAllDistributedElements(slctr);
|
||||
return Polymer.dom(this).queryDistributedElements(slctr);
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -124,6 +124,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user