Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: third_party/WebKit/LayoutTests/custom-elements/imports/async-imports.html

Issue 2242743002: Make custom elements work in HTML imports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip (CustomElementsRegistry.cpp change is gone) Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../spec/resources/custom-elements-helpers.js"></script>
5 <link rel="import" href="resources/async-component.html" async>
6 <a-a></a-a>
7 <script>
8 'use strict';
9 promise_test(() => {
10 return customElements.whenDefined('a-a').then(() => {
11 let a = document.querySelector('a-a');
12 assert_is_upgraded(a, AsyncComponent,
13 '<async-component> in this document should have been upgr aded.');
14
15 let link = document.querySelector('link[rel=import]');
16 let b = link.import.querySelector('a-a');
17 assert_is_upgraded(b, AsyncComponent,
18 '<async-component> in imported document should have been upgraded.');
19 });
20 }, 'custom elements definition in async import should work.');
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698