mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
wait for elements in other modules to be defined
This commit is contained in:
@@ -185,9 +185,10 @@ import '../../lib/mixins/disable-upgrade-mixin.js';
|
|||||||
suite('disable-upgrade', function() {
|
suite('disable-upgrade', function() {
|
||||||
let el;
|
let el;
|
||||||
|
|
||||||
setup(() => {
|
setup((done) => {
|
||||||
el = document.createElement('my-element');
|
el = document.createElement('my-element');
|
||||||
document.body.appendChild(el);
|
document.body.appendChild(el);
|
||||||
|
window.addEventListener('DOMContentLoaded', function() { done(); });
|
||||||
});
|
});
|
||||||
teardown(function() {
|
teardown(function() {
|
||||||
document.body.removeChild(el);
|
document.body.removeChild(el);
|
||||||
|
|||||||
Reference in New Issue
Block a user