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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/elements-and-dom-objects/shadowroot-object/shadowroot-methods/test-006.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/elements-and-dom-objects/shadowroot-object/shadowroot-methods/test-006.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/elements-and-dom-objects/shadowroot-object/shadowroot-methods/test-006.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/elements-and-dom-objects/shadowroot-object/shadowroot-methods/test-006.html
index 1eb5b1aea09f2764c3897c328bd5a07670243075..1892f0d192025061b73e0b918e821feb94782f87 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/elements-and-dom-objects/shadowroot-object/shadowroot-methods/test-006.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/elements-and-dom-objects/shadowroot-object/shadowroot-methods/test-006.html
@@ -16,7 +16,7 @@ policies and contribution forms [3].
<meta name="assert" content="ShadowRoot Object: Element? elementFromPoint(float x, float y) method">
<script src="../../../../../../../resources/testharness.js"></script>
<script src="../../../../../../../resources/testharnessreport.js"></script>
-<script src="../../../testcommon.js"></script>
+<script src="../../../../../html/resources/common.js"></script>
</head>
<body>
<div id="log"></div>
@@ -29,10 +29,10 @@ test(function () {
d.body.appendChild(el);
try {
- el.elementFromPoint(1, 1);
- assert_true(false, 'TypeMismatchError should be thrown');
+ el.elementFromPoint(1, 1);
+ assert_true(false, 'TypeMismatchError should be thrown');
} catch(e) {
- assert_true(e instanceof TypeError, 'Wrong error type');
+ assert_true(e instanceof TypeError, 'Wrong error type');
}
}, 'A_10_01_02_06_01_T01');
@@ -44,7 +44,7 @@ test(function () {
var el = d.createElement('div');
- var s = el.createShadowRoot();
+ var s = el.attachShadow({mode: 'open'});
d.body.appendChild(el);
if (typeof(s) == 'undefined' || typeof (s.elementFromPoint(1, 1)) != 'object') {

Powered by Google App Engine
This is Rietveld 408576698