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

Unified Diff: LayoutTests/fast/dom/shadow/shadow-root-js-api.html

Issue 11776020: Merge 138165 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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/shadow-root-js-api-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/shadow-root-js-api.html
===================================================================
--- LayoutTests/fast/dom/shadow/shadow-root-js-api.html (revision 138923)
+++ LayoutTests/fast/dom/shadow/shadow-root-js-api.html (working copy)
@@ -14,10 +14,17 @@
if (window.testRunner)
testRunner.dumpAsText();
+
+shouldBeUndefined("window.ShadowRoot");
+shouldBeDefined("window.WebKitShadowRoot");
+shouldThrow("new window.WebKitShadowRoot(document.createElement('div'))");
+
var shadowHost = document.createElement('div');
document.body.appendChild(shadowHost);
var shadowRoot = shadowHost.webkitCreateShadowRoot();
+shouldBeTrue("shadowRoot instanceof window.WebKitShadowRoot");
+
var div1 = document.createElement("div");
div1.setAttribute("id", "div1");
shadowRoot.appendChild(div1);
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/shadow-root-js-api-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698