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 / shadowroot-object / shadowroot-attributes / test-011.html
index b32e5b8..6122e12 100644 (file)
@@ -28,7 +28,7 @@ test(unit(function (ctx) {
 
        var host = d.createElement('div');
        d.body.appendChild(host);
-       var s = createSR(host);
+       var s = host.createShadowRoot();
 
        assert_true(s.styleSheets != null, 'ShadowRoot styleSheets attribute shouldn\'t be null');
     assert_equals(s.styleSheets.length, 0, 'attribute must return the shadow root style sheets only');
@@ -42,7 +42,7 @@ test(unit(function (ctx) {
 
        var host = d.createElement('div');
        d.body.appendChild(host);
-       var s = createSR(host);
+       var s = host.createShadowRoot();
 
        var style = d.createElement('style');
        s.appendChild(style);