Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / shadow / shadow-contents-fallback-dynamic.html
index 999e1f1..b9648e5 100644 (file)
@@ -59,9 +59,9 @@ function createSpanWithText(text) {
 }
 
 function appendShadow(target, select) {
-    var root = internals.ensureShadowRoot(target);
+    var root = target.createShadowRoot();
 
-    var content = internals.createContentElement();
+    var content = document.createElement('content');
     content.setAttribute('select', select);
     content.appendChild(createSpanWithText("FALLBACK"));
 
@@ -71,11 +71,11 @@ function appendShadow(target, select) {
 }
 
 function appendShadowDeep(target, select) {
-    var root = internals.ensureShadowRoot(target);
+    var root = target.createShadowRoot();
 
     var child = document.createElement("span");
     {
-        var content = internals.createContentElement();
+        var content = document.createElement('content');
         content.setAttribute('select', select);
         content.appendChild(createSpanWithText("FALLBACK"));
 
@@ -348,8 +348,8 @@ function testContentInContent(callIfDone) {
     target.appendChild(createSpanWithText('S1'));
     target.appendChild(createSpanWithText('S2'));
 
-    var root = internals.ensureShadowRoot(target);
-    var content1 = internals.createContentElement();
+    var root = target.createShadowRoot();
+    var content1 = document.createElement('content');
     content1.setAttribute('select', 'div');
 
     root.appendChild(document.createTextNode("{SHADOW: "));
@@ -360,7 +360,7 @@ function testContentInContent(callIfDone) {
 
     var f = (function(target, content1, callIfDone) {
         return function() {
-            var content2 = internals.createContentElement();
+            var content2 = document.createElement('content');
             content2.setAttribute('select', 'span');
             content2.appendChild(createSpanWithText('CONTENT 2 FALLBACK'));
             content1.appendChild(content2);
@@ -379,8 +379,8 @@ function testContentInContentFallback(callIfDone) {
     target.appendChild(createSpanWithText('S1'));
     target.appendChild(createSpanWithText('S2'));
 
-    var root = internals.ensureShadowRoot(target);
-    var content1 = internals.createContentElement();
+    var root = target.createShadowRoot();
+    var content1 = document.createElement('content');
     content1.setAttribute('select', 'div');
 
     root.appendChild(document.createTextNode("{SHADOW: "));
@@ -391,7 +391,7 @@ function testContentInContentFallback(callIfDone) {
 
     var f = (function(target, content1, callIfDone) {
         return function() {
-            var content2 = internals.createContentElement();
+            var content2 = document.createElement('content');
             content2.setAttribute('select', 'div');
             content2.appendChild(createSpanWithText('CONTENT 2 FALLBACK'));
             content1.appendChild(content2);
@@ -410,8 +410,8 @@ function testContentInContentFallbackDirect(callIfDone) {
     target.appendChild(createSpanWithText('S1'));
     target.appendChild(createSpanWithText('S2'));
 
-    var root = internals.ensureShadowRoot(target);
-    var content1 = internals.createContentElement();
+    var root = target.createShadowRoot();
+    var content1 = document.createElement('content');
     content1.setAttribute('select', 'div');
     root.appendChild(content1);
 
@@ -419,7 +419,7 @@ function testContentInContentFallbackDirect(callIfDone) {
 
     var f = (function(target, content1, callIfDone) {
         return function() {
-            var content2 = internals.createContentElement();
+            var content2 = document.createElement('content');
             content2.setAttribute('select', 'div');
             content2.appendChild(createSpanWithText('CONTENT 2 FALLBACK'));
             content1.appendChild(content2);