@webcomponents/custom-elements
Version:
HTML Custom Elements Polyfill
22 lines (19 loc) • 692 B
HTML
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>;
let constructors = [];
</script>
<a-a></a-a>
<b-b></b-b>
<link rel="import" href="resources/circular-level1.html">
<script>;
test(() => {
// At the point of imports, <a-a> and <b-b> are already parsed and will be
// upgraded when the definitions are ready.
assert_array_equals(constructors, ['circular-level2', 'circular-level1'],
'The constructor order should be script execution order of definition.');
}, 'custom element definitions in circularly-dependent imports should work.');
</script>