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

Unified Diff: third_party/WebKit/LayoutTests/editing/deleting/smart-editing-disabled-win.html

Issue 2935693004: Rewrite editing/deleting/smart-editing-disabled-{mac,win}.html to utilize assert_selection() (Closed)
Patch Set: 2017-06-14T13:25:00 Created 3 years, 6 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/editing/deleting/smart-editing-disabled-win.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/smart-editing-disabled-win.html b/third_party/WebKit/LayoutTests/editing/deleting/smart-editing-disabled-win.html
deleted file mode 100644
index 45decc046e9a1ed6c80480285339a95450f802b9..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/deleting/smart-editing-disabled-win.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<html>
-<head>
-<script>
-
-if (window.testRunner) {
- testRunner.dumpAsText();
- internals.settings.setSmartInsertDeleteEnabled(false);
- internals.settings.setSelectTrailingWhitespaceEnabled(true);
-}
-if (window.internals)
- internals.settings.setEditingBehavior('win');
-
-function editingTest() {
- var div = document.getElementById("div");
- var sel = window.getSelection();
-
- sel.collapse(div, 0);
- sel.modify("move", "forward", "word");
- sel.modify("move", "forward", "word");
- sel.modify("move", "backward", "character");
- sel.modify("extend", "backward", "word");
- testRunner.execCommand("DeleteForward");
-}
-
-</script>
-<title>Editing Test</title>
-</head>
-<body>
-This test verifies that smart insert and delete can be disabled at test time.<br>
-If viewing in a browser, you should see the words "foo bar baz".<br>
-If using a version of testRunner with this functionality, you should see "foo baz". (two spaces between the words)<br>
-If using a version of testRunner without this functionality, you should see "foo baz". (one space between the words)<br>
-</div>
-</div>
-
-<div contenteditable="true" id="div">
-foo bar baz
-</div>
-
-<script>
-editingTest();
-</script>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698