Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/leaktests/html-collection.html |
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/leaktests/html-collection.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/leaktests/html-collection.html |
index 5c35f6b66010464b0f5cff6d69626dab5f5afd8c..d7445d4328b1b04c0e4d53d409f4d35ac03d0887 100644 |
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/leaktests/html-collection.html |
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/leaktests/html-collection.html |
@@ -20,7 +20,8 @@ |
<script></script> |
</template> |
<div id='doc'></div> |
-<div id='host'></div> |
+<div id='host-open'></div> |
+<div id='host-closed'></div> |
</body> |
<script> |
'use strict'; |
@@ -41,9 +42,13 @@ var doc = document.getElementById('doc'); |
fillTemplate(doc, 'doc-'); |
// Construct shadow subtree with 'shadow-*' ids. |
-var host = document.getElementById('host'); |
+var host = document.getElementById('host-open'); |
var shadow = host.attachShadow({mode: 'open'}); |
-fillTemplate(shadow, 'shadow-'); |
+fillTemplate(shadow, 'shadow-open-'); |
+ |
+host = document.getElementById('host-closed'); |
+shadow = host.attachShadow({mode: 'closed'}); |
+fillTemplate(shadow, 'shadow-closed-'); |
function testCollection(collection) { |
var elements = document[collection]; |