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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/inserting/redo_insert_text.html

Issue 2296583002: Convert editing/inserting/redo.html to use w3c test harness (Closed)
Patch Set: 2016-08-30T15:22:16 Created 4 years, 3 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/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
5 <div id="log"></div>
6 <script>
7 test(() => assert_selection(
8 '<div contenteditable>|</div>',
9 selection => {
10 selection.document.execCommand('insertText', false, 'foo');
11 selection.document.execCommand('undo');
12 selection.document.execCommand('redo');
13 },
14 '<div contenteditable>foo|</div>'),
15 'Redo insertText on empty editable');
16
17 test(() => assert_selection(
18 '<div contenteditable>fo|o</div>',
19 selection => {
20 selection.document.execCommand('insertText', false, 'bar');
21 selection.document.execCommand('undo');
22 selection.document.execCommand('redo');
23 },
24 '<div contenteditable>fobar|o</div>'),
25 'Redo insertText on non-empty editable');
26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698