<!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">
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);
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);
// 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);