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

Unified Diff: LayoutTests/fast/dom/Range/range-compareNode.html

Issue 974823002: Add [TypeChecking=Interface] to Range interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add FIXME comments Created 5 years, 9 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: LayoutTests/fast/dom/Range/range-compareNode.html
diff --git a/LayoutTests/fast/dom/Range/range-compareNode.html b/LayoutTests/fast/dom/Range/range-compareNode.html
index e895387e41e87c52b580f8b5f59f5670f5f86b76..9a69cf011b659682cff114d132839eaf7b269cd7 100644
--- a/LayoutTests/fast/dom/Range/range-compareNode.html
+++ b/LayoutTests/fast/dom/Range/range-compareNode.html
@@ -181,7 +181,7 @@ function test()
try {
result = range.compareNode(node);
} catch (e) {
- if(e.code == DOMException.NOT_FOUND_ERR) {
+ if(e.name == "TypeError") {
document.getElementById("test19").innerHTML = "test 19 passed: deleted node";
} else {
document.getElementById("test19").innerHTML = "<span style=\"color: red;\">test 19 failed error: " + e.message + "</span>";

Powered by Google App Engine
This is Rietveld 408576698