| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 3 @license |
| 4 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
| 5 This code may only be used under the BSD style license found at http://polym
er.github.io/LICENSE.txt |
| 6 The complete set of authors may be found at http://polymer.github.io/AUTHORS
.txt |
| 7 The complete set of contributors may be found at http://polymer.github.io/CO
NTRIBUTORS.txt |
| 8 Code distributed by Google as part of the polymer project is also |
| 9 subject to an additional IP rights grant found at http://polymer.github.io/P
ATENTS.txt |
| 10 --> |
| 11 <html> |
| 12 <head> |
| 13 <title></title> |
| 14 <meta charset="UTF-8"> |
| 15 <script src="../webcomponents-loader.js"></script> |
| 16 <script src="../../web-component-tester/browser.js"></script> |
| 17 </head> |
| 18 <body> |
| 19 <script> |
| 20 test('import upgrade async', function(done) { |
| 21 |
| 22 function testImports() { |
| 23 // import upgraded |
| 24 assert.ok(a1); |
| 25 assert.isTrue(isA1Upgraded); |
| 26 // order expected |
| 27 assert.deepEqual(a1DocsList, ['a1-instance.html', 'a1-reference.html']
); |
| 28 // style applied at upgrade time |
| 29 if (window.HTMLImports) { |
| 30 assert.isTrue(styleAppliedToDocument); |
| 31 } |
| 32 done(); |
| 33 } |
| 34 |
| 35 // be async |
| 36 setTimeout(function() { |
| 37 var l = document.createElement('link'); |
| 38 l.rel = 'import'; |
| 39 l.href = 'imports/a1-import.html'; |
| 40 l.addEventListener('load', testImports); |
| 41 document.head.appendChild(l); |
| 42 }); |
| 43 }); |
| 44 </script> |
| 45 </body> |
| 46 </html> |
| OLD | NEW |