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

Side by Side Diff: LayoutTests/editing/selection/move-by-word-visually-null-box.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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="resources/move-by-word-visually.js"></script>
3 <script src="../../resources/js-test.js"></script>
4 <script>
5
6 onload = function() {
7 try {
8 runTest();
9
10 // Test NULL VisiblePosition.
11 var selection = getSelection();
12 selection.setPosition(0, 0);
13 selection.modify("move", "right", "-webkit-visual-word");
14 document.body.innerHTML = "Crash test passed";
15 } finally {
16 }
17 };
18
19 if (window.testRunner && window.internals) {
20 testRunner.dumpAsText();
21 internals.settings.setEditingBehavior('win');
22 }
23 </script>
24 <div id="console"></div>
25 <div id="testMoveByWord">
26 <output><div dir=ltr title="0|0" class="test_move_by_word">
27 <div class="test_move_by_word" dir=ltr contenteditable title="0|0"></div>
28 00<base dir=ltr class="test_move_by_word" title="3|3 1">
29 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698