Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/styles/test-003.html |
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/styles/test-003.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/styles/test-003.html |
index 66cc937dafb6939ed0e604c119f164db46026199..285ba988f4e64e7d6f4a8ade4b6f538b38af399e 100644 |
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/styles/test-003.html |
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/styles/test-003.html |
@@ -16,7 +16,8 @@ policies and contribution forms [3]. |
<meta name="assert" content="Styles: Each shadow root has an associated list of zero or more style sheets, named shadow root style sheets"> |
<script src="../../../../../resources/testharness.js"></script> |
<script src="../../../../../resources/testharnessreport.js"></script> |
-<script src="../testcommon.js"></script> |
+<script src="../../../html/resources/common.js"></script> |
+<script src="../../resources/shadow-dom-utils.js"></script> |
</head> |
<body> |
<div id="log"></div> |
@@ -27,7 +28,7 @@ test(unit(function (ctx) { |
d.body.appendChild(host); |
//Shadow root to play with |
- var s = host.createShadowRoot(); |
+ var s = host.attachShadow({mode: 'open'}); |
assert_equals(s.styleSheets.length, 0, 'There should be no style sheets'); |
}), 'A_06_00_03_T01'); |
@@ -40,9 +41,9 @@ test(unit(function (ctx) { |
d.body.appendChild(host); |
//Shadow root to play with |
- var s = host.createShadowRoot(); |
+ var s = host.attachShadow({mode: 'open'}); |
- assert_equals(s.styleSheets.length, 0, 'There should be no style sheets'); |
+ assert_equals(s.styleSheets.length, 0, 'There should be no style sheets'); |
}), 'A_06_00_03_T02'); |
//TODO Now this tests produces an error on Chromium because styleSheets.length |
@@ -53,7 +54,7 @@ test(unit(function (ctx) { |
var host = d.createElement('div'); |
//Shadow root to play with |
- var s = host.createShadowRoot(); |
+ var s = host.attachShadow({mode: 'open'}); |
var style = d.createElement('style'); |
style.textContent = 'div {width: 50%;}'; |