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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/31684.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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/fast/dom/Range/script-tests/31684.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/31684.js b/third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/31684.js
deleted file mode 100644
index 6b3e1a92c53357eb576efc9ccd03b771631d064b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/31684.js
+++ /dev/null
@@ -1,10 +0,0 @@
-description(
- "This test checks an orphan text node cannot be surrounded by the range. (bug31684)"
-);
-
-var range = document.createRange();
-var text = document.createTextNode('hello');
-var element = document.createElement("div");
-range.selectNodeContents(text);
-
-shouldThrow("range.surroundContents(element)", '"HierarchyRequestError: Failed to execute \'surroundContents\' on \'Range\': The container node is a detached character data node; no parent node is available for insertion."');

Powered by Google App Engine
This is Rietveld 408576698