Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / shadow / content-element-includer.html
index 4d59e02..84676e4 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html>
 <head>
-<script src="../../js/resources/js-test-pre.js"></script>
+<script src="../../../resources/js-test.js"></script>
 </head>
 <body>
 <pre id="console">
@@ -29,7 +29,7 @@ shouldBe("includerFor(childOfElementWithoutShadow)", "null");
 
 var elementWithShadow = document.createElement("div");
 container.appendChild(elementWithShadow);
-var shadowRootOfElementWithShadow = internals.ensureShadowRoot(elementWithShadow);
+var shadowRootOfElementWithShadow = elementWithShadow.createShadowRoot();
 shadowRootOfElementWithShadow.appendChild(document.createElement("div")); // Gives non-content child.
 var childOfElementWithShadow = document.createElement("span");
 elementWithShadow.appendChild(childOfElementWithShadow);
@@ -38,8 +38,8 @@ shouldBe("includerFor(childOfElementWithShadow)", "null");
 
 var elementWithShadowContent = document.createElement("div");
 container.appendChild(elementWithShadowContent);
-var shadowRootOfElementWithShadowContent = internals.ensureShadowRoot(elementWithShadowContent);
-var shadowContentOfElementWithShadowContent = internals.createContentElement();
+var shadowRootOfElementWithShadowContent = elementWithShadowContent.createShadowRoot();
+var shadowContentOfElementWithShadowContent = document.createElement('content');
 shadowRootOfElementWithShadowContent.appendChild(shadowContentOfElementWithShadowContent);
 var childOfElementWithShadowContent = document.createElement("span");
 elementWithShadowContent.appendChild(childOfElementWithShadowContent);
@@ -63,8 +63,8 @@ elementWithShadow.removeChild(movingChild);
 // Moving to another content-full tree
 var anotherElementWithShadowContent = document.createElement("div");
 container.appendChild(anotherElementWithShadowContent);
-var anotherShadowRootOfElementWithShadowContent = internals.ensureShadowRoot(anotherElementWithShadowContent);
-var anotherShadowContentOfElementWithShadowContent = internals.createContentElement();
+var anotherShadowRootOfElementWithShadowContent = anotherElementWithShadowContent.createShadowRoot();
+var anotherShadowContentOfElementWithShadowContent = document.createElement('content');
 anotherShadowRootOfElementWithShadowContent.appendChild(anotherShadowContentOfElementWithShadowContent);
 
 anotherElementWithShadowContent.appendChild(movingChild);