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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Selection/script-tests/collapseToX-empty-selection.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/Selection/script-tests/collapseToX-empty-selection.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Selection/script-tests/collapseToX-empty-selection.js b/third_party/WebKit/LayoutTests/fast/dom/Selection/script-tests/collapseToX-empty-selection.js
deleted file mode 100644
index e32618e742d8fd4aa2dc77fccda79091dc7b7c1a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/Selection/script-tests/collapseToX-empty-selection.js
+++ /dev/null
@@ -1,15 +0,0 @@
-description("Test that collapseToStart() and collapseToEnd() throw INVALID_STATE_ERR if no selection is made.");
-
-var sel = window.getSelection();
-var textNode = document.createTextNode("abcdef");
-document.body.appendChild(textNode);
-
-shouldThrow("sel.collapseToStart()", '"InvalidStateError: Failed to execute \'collapseToStart\' on \'Selection\': there is no selection."');
-shouldThrow("sel.collapseToEnd()", '"InvalidStateError: Failed to execute \'collapseToEnd\' on \'Selection\': there is no selection."');
-
-sel.selectAllChildren(textNode);
-
-shouldBe("sel.collapseToStart()", "undefined");
-shouldBe("sel.collapseToEnd()", "undefined");
-
-document.body.removeChild(textNode);

Powered by Google App Engine
This is Rietveld 408576698