mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
* 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.
20 lines
804 B
JavaScript
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);
|
|
});
|
|
|
|
});
|