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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/deleting/delete-ligature-003.html

Issue 2153043002: Make "Undo" command to restore selection after validating with the latest Layout tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-21T19:03:31 Created 4 years, 5 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 | third_party/WebKit/Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script> 4 <script src="../assert_selection.js"></script>
5 <script> 5 <script>
6 test(() => { 6 test(() => {
7 assert_not_equals(window.eventSender, undefined, 7 assert_not_equals(window.eventSender, undefined,
8 'This test requires window.eventSender'); 8 'This test requires window.eventSender');
9 assert_not_equals(window.internals, undefined, 9 assert_not_equals(window.internals, undefined,
10 'This test requires window.internals'); 10 'This test requires window.internals');
11 ['mac', 'win', 'unix', 'android'].forEach(platform => 11 ['mac', 'win', 'unix', 'android'].forEach(platform =>
12 assert_selection( 12 assert_selection(
13 '<div contenteditable>\u0E27\u0E31|</div>', 13 '<div contenteditable>\u0E27\u0E31|</div>',
14 selection => { 14 selection => {
15 internals.settings.setEditingBehavior(platform); 15 internals.settings.setEditingBehavior(platform);
16 selection.document.defaultView.focus(); 16 selection.document.defaultView.focus();
17 eventSender.keyDown('Backspace', null); 17 eventSender.keyDown('Backspace', null);
18 selection.document.execCommand('undo'); 18 selection.document.execCommand('undo');
19 }, 19 },
20 platform === 'mac' 20 '<div contenteditable>\u0E27\u0E31|</div>',
21 ? '<div contenteditable>\u0E27|\u0E31^</div>'
22 : '<div contenteditable>\u0E27\u0E31|</div>',
23 `${platform}: Undo of backspace key on ligature U+0E27 and U+0E31`)) ; 21 `${platform}: Undo of backspace key on ligature U+0E27 and U+0E31`)) ;
24 }); 22 });
25 </script> 23 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698