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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/user-interaction/editing/inheritance-of-content-editable-001.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/user-interaction/editing/inheritance-of-content-editable-001.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/user-interaction/editing/inheritance-of-content-editable-001.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/user-interaction/editing/inheritance-of-content-editable-001.html
index 1ca864ee2e5dcf17462d0e78e9c679f114c4524b..2218176392e63d0dbe2d35b59cd9ce3b6b7a0d74 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/user-interaction/editing/inheritance-of-content-editable-001.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/user-interaction/editing/inheritance-of-content-editable-001.html
@@ -16,7 +16,8 @@ policies and contribution forms [3].
<meta name="assert" content="User Interaction: Shadow trees must not be propagated contentEditable attribute from shadow host">
<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>
@@ -28,7 +29,7 @@ test(unit(function (ctx) {
host.contentEditable = "true";
d.body.appendChild(host);
- var s = host.createShadowRoot();
+ var s = host.attachShadow({mode: 'open'});
assert_equals(host.contentEditable, "true");
assert_equals(s.contentEditable, undefined);
@@ -41,7 +42,7 @@ test(unit(function (ctx) {
host.contentEditable = "false";
d.body.appendChild(host);
- var s = host.createShadowRoot();
+ var s = host.attachShadow({mode: 'open'});
assert_equals(host.contentEditable, 'false');
assert_equals(s.contentEditable, undefined);
@@ -54,7 +55,7 @@ test(unit(function (ctx) {
d.body.appendChild(host);
d.body.contentEditable = "true";
- var s = host.createShadowRoot();
+ var s = host.attachShadow({mode: 'open'});
assert_equals(host.contentEditable, 'inherit');
assert_equals(s.contentEditable, undefined);

Powered by Google App Engine
This is Rietveld 408576698