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> |