Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/styles/test-003.html

Issue 1899623002: Import latest web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handle new failures Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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%;}';

Powered by Google App Engine
This is Rietveld 408576698