Chromium Code Reviews| 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..2d165ace59596518beaaf1b27884ba35056c2221 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/custom-elements/imports/imports-define-in-import.html |
| @@ -0,0 +1,23 @@ |
| +<!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' |
| +setup({ explicit_done: true }); |
| +window.onload = function () { |
| + test(() => { |
| + assert_equals(reactions.length, 2); |
| + }, 'Upgrade elements in master and import'); |
| + |
| + let elementsInMaster = document.getElementsByTagName('x-x'); |
| + let elementsInImport = import1.import.getElementsByTagName('x-x'); |
| + test(() => { |
| + assert_equals(reactions[0].element, elementsInImport[0]); |
|
dominicc (has gone to gerrit)
2016/08/22 01:46:36
I think I have mentioned this a few times, but sim
kochi
2016/08/22 07:37:34
Done.
|
| + assert_equals(reactions[1].element, elementsInMaster[0]); |
| + }, 'Upgrade elements in import first'); |
| + |
| + done(); |
| +}; |
| +</script> |