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); |