Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / w3c / web-platform-tests / shadow-dom / html-elements-and-their-shadow-trees / test-001.html
index 2746112..204d0c1 100644 (file)
@@ -35,7 +35,7 @@ test(unit(function (ctx) {
        '<span id="shadow">This is a node that should be distributed</span>' +
        '<span id="flbk">This is a fallback content</span>';
 
-    var s = createSR(el);
+    var s = el.createShadowRoot();
     s.innerHTML = '<content select="#shadow"></content>';
 
     assert_true(d.querySelector('#shadow').offsetTop > 0, 'Iframe should allow at least one insertion point');
@@ -57,7 +57,7 @@ test(unit(function (ctx) {
        '<span id="shadow">This is a node that should be distributed</span>' +
        '<span id="flbk">This is a fallback content</span>';
 
-    var s = createSR(el);
+    var s = el.createShadowRoot();
     s.innerHTML = '<content select="#shadow"></content>';
 
     assert_true(d.querySelector('#shadow').offsetTop > 0, 'object should allow at least one insertion point');
@@ -79,7 +79,7 @@ test(unit(function (ctx) {
        '<span id="shadow">This is a node that should be distributed</span>' +
        '<span id="flbk">This is a fallback content</span>';
 
-    var s = createSR(el);
+    var s = el.createShadowRoot();
     s.innerHTML = '<content select="#shadow"></content>';
 
     assert_true(d.querySelector('#shadow').offsetTop > 0, 'video should allow at least one insertion point');
@@ -101,7 +101,7 @@ test(unit(function (ctx) {
        '<span id="shadow">This is a node that should be distributed</span>' +
        '<span id="flbk">This is a fallback content</span>';
 
-    var s = createSR(el);
+    var s = el.createShadowRoot();
     s.innerHTML = '<content select="#shadow"></content>';
 
     assert_true(d.querySelector('#shadow').offsetTop > 0, 'audio should allow at least one insertion point');
@@ -123,7 +123,7 @@ test(unit(function (ctx) {
        '<span id="shadow">This is a node that should be distributed</span>' +
        '<span id="flbk">This is a fallback content</span>';
 
-    var s = createSR(el);
+    var s = el.createShadowRoot();
     s.innerHTML = '<content select="#shadow"></content>';
 
     assert_true(d.querySelector('#shadow').offsetTop > 0, 'canvas should allow at least one insertion point');
@@ -154,7 +154,7 @@ test(unit(function (ctx) {
                '<span id="flbk">This is a fallback content</span>';
 
 
-    var s = createSR(el);
+    var s = el.createShadowRoot();
     s.innerHTML = '<content select="#shadow"></content>';
 
     assert_true(d.querySelector('#shadow').offsetTop > 0, 'map should allow at least one insertion point');
@@ -176,7 +176,7 @@ test(unit(function (ctx) {
        '<span id="shadow">This is a node that should be distributed</span>' +
        '<span id="flbk">This is a fallback content</span>';
 
-    var s = createSR(el);
+    var s = el.createShadowRoot();
     s.innerHTML = '<content select="#shadow"></content>';
 
     assert_true(d.querySelector('#shadow').offsetTop > 0, 'textarea should allow at least one insertion point');
@@ -198,7 +198,7 @@ test(unit(function (ctx) {
        '<span id="shadow">This is a node that should be distributed</span>' +
        '<span id="flbk">This is a fallback content</span>';
 
-    var s = createSR(el);
+    var s = el.createShadowRoot();
     s.innerHTML = '<content select="#shadow"></content>';
 
     assert_true(d.querySelector('#shadow').offsetTop > 0, 'progress should allow at least one insertion point');
@@ -220,7 +220,7 @@ test(unit(function (ctx) {
        '<span id="shadow">This is a node that should be distributed</span>' +
        '<span id="flbk">This is a fallback content</span>';
 
-    var s = createSR(el);
+    var s = el.createShadowRoot();
     s.innerHTML = '<content select="#shadow"></content>';
 
     assert_true(d.querySelector('#shadow').offsetTop > 0, 'meter should allow at least one insertion point');