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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/undo/redo_rebalance_whitespace.html

Issue 2249833003: Convert editing/undo/4063751.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-08-17T10:59:55 Created 4 years, 4 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
2 <!doctype html>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script src="../assert_selection.js"></script>
6 <script>
7 // This tests RebalanceWhitespace's ability to Undo.
8 test(() => assert_selection(
9 [
10 '<div contenteditable style="word-wrap: break-word;">',
11 '<div>( |)</div>',
12 '</div>',
13 ].join(''),
14 selection => {
15 Array.of('this is a test. ').forEach(character => {
16 selection.document.execCommand('insertText', false, character);
17 });
18 selection.document.execCommand('undo');
19 selection.document.execCommand('redo');
20 selection.document.execCommand('undo');
21 selection.document.execCommand('redo');
22 },
23 [
24 '<div contenteditable style="word-wrap: break-word;">',
25 '<div>( this is a test. |)</div>',
26 '</div>',
27 ].join('')),
28 'Redo Typing can add extra space characters');
29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698