Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / w3c / web-platform-tests / shadow-dom / elements-and-dom-objects / the-shadow-html-element / test-004.html
index 9b9fdff..587da64 100644 (file)
@@ -72,7 +72,7 @@ test(unit(function (ctx) {
        assert_true(height6 > defHeight6, 'Point 16: Element height should be changed');
 
        //Shadow root to play with
-    var s = createSR(host);
+    var s = host.createShadowRoot();
 
        var div = d.createElement('div');
        div.innerHTML ='<ul><content select=".shadow"></content></ul>';
@@ -87,7 +87,7 @@ test(unit(function (ctx) {
        assert_equals(d.querySelector('#li6').offsetHeight, 0, 'Point 26: Element shouldn\'t be rendered');
 
        //Young tree
-       var s2 = createSR(host);
+       var s2 = host.createShadowRoot();
 
        var div2 = d.createElement('div');
        div2.innerHTML = '<shadow></shadow>';