mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Fixes #3065: Add dom-repeat.renderedItemCount property
This commit is contained in:
@@ -115,6 +115,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
test('basic rendering, downward item binding', function() {
|
||||
var stamped = Polymer.dom(configured.root).querySelectorAll('*:not(template)');
|
||||
assert.equal(stamped.length, 3 + 3*3 + 3*3*3, 'total stamped count incorrect');
|
||||
assert.equal(configured.$.repeater.renderedItemCount, 3, 'rendered item count incorrect');
|
||||
assert.equal(stamped[0].itemaProp, 'prop-1');
|
||||
assert.equal(stamped[0].computeda, 'prop-1+itemForComputedA');
|
||||
assert.equal(stamped[0].indexa, 0);
|
||||
@@ -282,6 +283,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
CustomElements.takeRecords();
|
||||
var stamped = Polymer.dom(configured.root).querySelectorAll('*:not(template)');
|
||||
assert.equal(stamped.length, 2 + 2*3 + 2*3*3, 'total stamped count incorrect');
|
||||
assert.equal(configured.$.repeater.renderedItemCount, 2, 'rendered item count incorrect');
|
||||
assert.equal(stamped[0].itemaProp, 'prop-1');
|
||||
assert.equal(stamped[0].indexa, 0);
|
||||
assert.equal(stamped[13].itemaProp, 'prop-3');
|
||||
|
||||
Reference in New Issue
Block a user