| <!DOCTYPE html> |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <script> |
| 'use strict'; |
| let constructors = []; |
| </script> |
| <a-a></a-a> |
| <b-b></b-b> |
| <c-c></c-c> |
| <link rel="import" href="resources/nested-level1.html"> |
| <script> |
| 'use strict'; |
| test(() => { |
| let types = constructors.map(e => e.type); |
| assert_array_equals(types, ['nested-level3', 'nested-level2', 'nested-level1'], |
| 'The constructor order should be script execution order of definition.'); |
| }, 'Custom Elements definition in nested imports should work.'); |
| </script> |