Files
polymer/test/unit/ready.js
Steve Orvell 18cad86780 Clarify concept of host to mean dom host. Related:
* remove configuration element list after configuration.
* shady dom dynamically re-renders only dirty roots.
* x-scope styling styles elements found via dom.
* make template stamped element hosted by templateInstance
* marshal templates at config time and make x-repeat render in ready.
2015-04-03 18:28:19 -07:00

20 lines
804 B
JavaScript

suite('ready', function() {
var configure = ['x-ready', 'x-zot#a', 'x-zot#b', 'x-zot#c', 'x-zot#d', 'x-foo#foo', 'x-bar#bar1', 'x-zot', 'x-bar#bar2', 'x-zot'];
var ready = ['x-zot#a', 'x-zot#b', 'x-zot#c', 'x-zot#d', 'x-zot', 'x-bar#bar1', 'x-zot', 'x-bar#bar2', 'x-foo#foo', 'x-ready'];
test('element create in dom calls configure/ready/attached in proper order', function() {
assert.deepEqual(configureList, configure);
assert.deepEqual(readyList, ready);
});
test('element create + attach calls configure/ready/attached in proper order', function() {
clearTestLists();
document.body.appendChild(document.createElement('x-ready'));
CustomElements.takeRecords(document);
assert.deepEqual(configureList, configure);
assert.deepEqual(readyList, ready);
});
});