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

Unified Diff: LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html

Issue 1168323002: Support parameter passing for shadow-dom.js's createShadowRoot (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/dom/shadow/create-shadow-root-with-parameter.html
diff --git a/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html b/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html
index 669457359b56d350eb43b8a1de9df5928c919dbd..c1d50fcdd29bf04018522aa42e30e7761200e849 100644
--- a/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html
+++ b/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html
@@ -2,6 +2,7 @@
<html>
<head>
<script src="../../../resources/js-test.js"></script>
+<script src="resources/shadow-dom.js"></script>
</head>
<body>
<div id="host1"></div>
@@ -28,5 +29,13 @@ shouldBeNonNull(root3);
debug('Create shadow root whose mode is neither open nor closed.');
var host4 = document.querySelector('#host4');
shouldThrow("host4.createShadowRoot({mode: 'illegal'})");
+
+debug('Create open shadow root with shadow-dom.js utility.');
+document.body.appendChild(
+ createDOM('div', {id: 'host5'},
+ createShadowRoot({mode: 'open'})));
+var host5 = document.querySelector('#host5');
+var root5 = host5.shadowRoot;
+shouldBeNonNull(root5);
</script>
</html>

Powered by Google App Engine
This is Rietveld 408576698