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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/TreeWalker/TreeWalker-currentNode-expected.txt

Issue 1481983002: Drop [LegacyInterfaceTypeChecking] where trivial in core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more tests Created 5 years, 1 month 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/fast/dom/TreeWalker/TreeWalker-currentNode-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/dom/TreeWalker/TreeWalker-currentNode-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/TreeWalker/TreeWalker-currentNode-expected.txt
index d9ea239aff26124949fef514a87e0403afe21684..f42f30f70a4b3c82fc52b786272532f984c067f6 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/TreeWalker/TreeWalker-currentNode-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/dom/TreeWalker/TreeWalker-currentNode-expected.txt
@@ -9,6 +9,12 @@ PASS w.currentNode is subTree
PASS w.parentNode() is null
PASS w.currentNode is subTree
+Test that setting the currentNode to non-Node values throws.
+
+PASS w.currentNode = null threw exception TypeError: Failed to set the 'currentNode' property on 'TreeWalker': The provided value is not of type 'Node'..
+PASS w.currentNode = {} threw exception TypeError: Failed to set the 'currentNode' property on 'TreeWalker': The provided value is not of type 'Node'..
+PASS w.currentNode = window threw exception TypeError: Failed to set the 'currentNode' property on 'TreeWalker': The provided value is not of type 'Node'..
+
Test that we handle setting the currentNode to arbitrary nodes not under the root element.
PASS w.parentNode() is null

Powered by Google App Engine
This is Rietveld 408576698