| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 <!DOCTYPE html> | 
|  | 2 <script src="../../resources/testharness.js"></script> | 
|  | 3 <script src="../../resources/testharnessreport.js"></script> | 
|  | 4 <script src="../spec/resources/custom-elements-helpers.js"></script> | 
|  | 5 <link id="import1" rel="import" href="resources/async-component.html" async> | 
|  | 6 <a-a></a-a> | 
|  | 7 <script> | 
|  | 8 'use strict'; | 
|  | 9 | 
|  | 10 promise_test(() => { | 
|  | 11   return customElements.whenDefined('a-a').then(() => { | 
|  | 12     let a = document.querySelector('a-a'); | 
|  | 13     assert_is_upgraded(a, AsyncComponent, | 
|  | 14                        '<async-component> in this document should have been upgr
    aded.'); | 
|  | 15 | 
|  | 16     let b = import1.import.querySelector('a-a'); | 
|  | 17     assert_is_upgraded(b, AsyncComponent, | 
|  | 18                        '<async-component> in imported document should have been 
    upgraded.'); | 
|  | 19   }); | 
|  | 20 }, 'custom elements definition in async import should work.'); | 
|  | 21 </script> | 
| OLD | NEW | 
|---|