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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/custom-elements/imports/parser-customize-imports.html
diff --git a/third_party/WebKit/LayoutTests/custom-elements/imports/parser-customize-imports.html b/third_party/WebKit/LayoutTests/custom-elements/imports/parser-customize-imports.html
new file mode 100644
index 0000000000000000000000000000000000000000..a20e1348edbf49c7eda49243459e35fa7b4a041c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/custom-elements/imports/parser-customize-imports.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+let constructors = [];
+</script>
+
+<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
+
+<parser-customize></parser-customize>
+
+<script>
+test(() => {
+ assert_equals(constructors.length, 3);
+ assert_equals(constructors[0], 'parser-customize');
+ assert_equals(constructors[1], 'parser-customize');
+ assert_equals(constructors[2], 'parser-customize');
+}, 'Parser should customize and synchronously call the constructor.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698