Index: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Element-closest-expected.txt |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Element-closest-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Element-closest-expected.txt |
index 41dd051e0224d53d54000c4316e521b1d51f18c3..55f2d80b0cbf8a9ed6ecce036403e4dac9726030 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Element-closest-expected.txt |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Element-closest-expected.txt |
@@ -24,9 +24,15 @@ PASS Element.closest with context node 'test10' and selector ':empty' |
PASS Element.closest with context node 'test11' and selector ':last-child' |
PASS Element.closest with context node 'test12' and selector ':first-child' |
PASS Element.closest with context node 'test11' and selector ':invalid' |
-PASS Element.closest with context node 'test4' and selector ':scope' |
-PASS Element.closest with context node 'test4' and selector 'select > :scope' |
-PASS Element.closest with context node 'test4' and selector 'div > :scope' |
-FAIL Element.closest with context node 'test4' and selector ':has(> :scope)' Failed to execute 'closest' on 'Element': ':has(> :scope)' is not a valid selector. |
+FAIL Element.closest with context node 'test4' and selector ':scope' should throw assert_throws: function "function () { |
+ el.closest(aSelector); |
+ }" did not throw |
+FAIL Element.closest with context node 'test4' and selector 'select > :scope' should throw assert_throws: function "function () { |
+ el.closest(aSelector); |
+ }" did not throw |
+FAIL Element.closest with context node 'test4' and selector 'div > :scope' should throw assert_throws: function "function () { |
+ el.closest(aSelector); |
+ }" did not throw |
+PASS Element.closest with context node 'test4' and selector ':has(> :scope)' should throw |
Harness: the test ran to completion. |