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

Unified Diff: LayoutTests/fast/html/imports/import-custom-element-in-grandchild.html

Issue 249563003: REGRESSION(r171966): Custom elements in async imports don't get upgrade. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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: LayoutTests/fast/html/imports/import-custom-element-in-grandchild.html
diff --git a/LayoutTests/fast/html/imports/import-custom-element-in-grandchild.html b/LayoutTests/fast/html/imports/import-custom-element-in-grandchild.html
new file mode 100644
index 0000000000000000000000000000000000000000..bf8314cf2195a4f663cb55b810a92a80e893f8fa
--- /dev/null
+++ b/LayoutTests/fast/html/imports/import-custom-element-in-grandchild.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script src="../../../http/tests/htmlimports/resources/import-custom-element-helper.js"></script>
+</head>
+<body>
+<script>
+var Hello = registerTestingCustomElement('x-hello');
+var numberOfLinks = 1;
+var t1 = async_test('Custom elements in an indirect import are upgraded.');
+var t2 = async_test('Custom elements in an indirect import are resolved.');
+var latch = new ImportTestLatch(function() {
+ t1.step(function() {
+ assert_equals('hello-1', Hello.ids[0]);
+ assert_array_equals(['hello-1', 'hello-2'], Hello.ids.slice(0).sort());
+ t1.done();
+ }, 0);
+
+ t2.step(function() {
+ var Bye = registerTestingCustomElement('x-bye');
+ assert_equals('bye-1', Bye.ids[0]);
+ assert_array_equals(['bye-1', 'bye-2'], Bye.ids.slice(0).sort());
+ t2.done();
+ });
+}, numberOfLinks);
+</script>
+<link rel="import" href="resources/custom-element-hello-parent-12.html" onload="latch.loaded()">
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698