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

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

Issue 1223473004: Prohibit createShadowRoot({mode: 'open'}) on existing shadow root. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c1d50fcdd29bf04018522aa42e30e7761200e849..3568176b453976586780199cbf5e6ed0eb04c248 100644
--- a/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html
+++ b/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html
@@ -37,5 +37,8 @@ document.body.appendChild(
var host5 = document.querySelector('#host5');
var root5 = host5.shadowRoot;
shouldBeNonNull(root5);
+
+debug('Create shadow root on already shadowed host will raise InvalidStateError exception.');
+shouldThrow("host1.createShadowRoot({mode: 'open'})");
</script>
</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698