| Index: third_party/WebKit/LayoutTests/custom-elements/imports/imports-define-in-import.html
|
| diff --git a/third_party/WebKit/LayoutTests/custom-elements/imports/imports-define-in-import.html b/third_party/WebKit/LayoutTests/custom-elements/imports/imports-define-in-import.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d54d24e5e8279831f85c1f1b0497cf0c92d0eaef
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/custom-elements/imports/imports-define-in-import.html
|
| @@ -0,0 +1,20 @@
|
| +<!DOCTYPE html>
|
| +<link id="import1" rel="import" href="resources/import-define.html" />
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<x-x></x-x>
|
| +<script>
|
| +'use strict'
|
| +
|
| +async_test((test) => {
|
| + window.onload = test.step_func_done(() => {
|
| + assert_equals(reactions.length, 2);
|
| +
|
| + let elementsInMaster = document.querySelector('x-x');
|
| + let elementsInImport = import1.import.querySelector('x-x');
|
| +
|
| + let elements = reactions.map(e => e.element);
|
| + assert_array_equals(elements, [elementsInImport, elementsInMaster]);
|
| + }, 'Upgrade elements in import first');
|
| +});
|
| +</script>
|
|
|