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-methods / test-002.html
index b1cc435..4bcc696 100644 (file)
@@ -29,7 +29,7 @@ test(function () {
     var el = d.createElement('div');
     d.body.appendChild(el);
 
-    var s = createSR(el);
+    var s = el.createShadowRoot();
 
     assert_equals(s.getElementsByClassName('clazz').length, 0, 'ShadowRoot getElementsByClassName() ' +
                'method should return empty list if there\'s no matching child elements');
@@ -45,7 +45,7 @@ test(function () {
     var el = d.createElement('div');
     d.body.appendChild(el);
 
-    var s = createSR(el);
+    var s = el.createShadowRoot();
 
     var child = d.createElement('span');
     child.setAttribute('class', 'clazz');
@@ -64,7 +64,7 @@ test(function () {
     var el = d.createElement('div');
     d.body.appendChild(el);
 
-    var s = createSR(el);
+    var s = el.createShadowRoot();
 
     var child = d.createElement('span');
     child.setAttribute('class', 'clazz');