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

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

Issue 2242743002: Make custom elements work in HTML imports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase wip 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>
5 let constructors = [];
6 </script>
7
8 <link rel="import" href="resources/parser-customize.html">
dominicc (has gone to gerrit) 2016/08/19 04:54:11 So... this blocks script, not parsing. Why can you
kochi 2016/08/19 10:51:48 Talked offline, this was based on my misunderstand
9
10 <parser-customize></parser-customize>
11
12 <script>
13 test(() => {
14 assert_equals(constructors.length, 3);
15 assert_equals(constructors[0], 'parser-customize');
16 assert_equals(constructors[1], 'parser-customize');
17 assert_equals(constructors[2], 'parser-customize');
18 }, 'Parser should customize and synchronously call the constructor.');
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698