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-004.html
index 38981e2..b99b595 100644 (file)
@@ -36,7 +36,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, '\'details\' should allow at least one insertion point');
@@ -62,7 +62,7 @@ test(unit(function (ctx) {
        '</summary>' +
        '<span id="flbk">Unlucky content</span>';
 
-    var s = createSR(el);
+    var s = el.createShadowRoot();
     s.innerHTML = '<content select="summary:first-of-type"></content>';
 
     assert_true(d.querySelector('#shadow').offsetTop > 0, 'details should allow insertion point' +