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

Side by Side Diff: LayoutTests/editing/selection/move-by-word-visually-crash-test-textarea.html

Issue 236733005: Remove redundant crash tests using Selection.modify("-webkit-visual-word"). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/editing/selection/move-by-word-visually-crash-test-textarea-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script>
3
4 onload = function() {
5 var sel = window.getSelection();
6 sel.empty();
7
8 var test = document.getElementById("test_move_by_word");
9 test.focus();
10 test.selectionDirection = 'none';
11 test.selectionStart = 1;
12 test.selectionEnd = 1;
13
14 getSelection().modify("move", "left", "-webkit-visual-word");
15 getSelection().modify("move", "left", "-webkit-visual-word");
16 document.body.innerHTML = "Crash test passed";
17 };
18
19 if (window.testRunner && window.internals) {
20 testRunner.dumpAsText();
21 internals.settings.setEditingBehavior('win');
22 }
23 </script>
24
25 <textarea dir=ltr title="0|0" id="test_move_by_word">At where are you</textarea>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/selection/move-by-word-visually-crash-test-textarea-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698