Skip to content

Commit

Permalink
wait for elements in other modules to be defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliott Marquez committed Apr 17, 2018
1 parent 0985652 commit f037640
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/disable-upgrade.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ <h2 id="element">[[prop]]</h2>
suite('disable-upgrade', function() {
let el;

setup(() => {
setup((done) => {
el = document.createElement('my-element');
document.body.appendChild(el);
window.addEventListener('DOMContentLoaded', function() { done(); });
});
teardown(function() {
document.body.removeChild(el);
Expand Down

0 comments on commit f037640

Please sign in to comment.