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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/deleting/delete_ws_fixup.html

Issue 2174683002: Convert editing/deleting/delete-ws-fixup-00[1234].html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-22T15:44:49 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
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 <script>
6 test(() => assert_selection(
7 '<div contenteditable>abc<i>de ef</i> gh <b> i|j </b> kl</div>',
8 'delete',
9 '<div contenteditable>abc<i>de ef</i> gh |<b>j </b> kl</div>'),
10 'Delete a character also removes redundant whitespaces');
11
12 test(() => assert_selection(
13 '<div contenteditable>abc<i>de ef</i> gh <b> ^ij| </b> kl</div>',
14 'delete',
15 '<div contenteditable>abc<i>de ef</i> gh |<b>\u{00A0}</b>kl</div>'),
16 'Delete characters and fix up whitespaces');
17
18 test(() => assert_selection(
19 '<div contenteditable>bar ^baz|<span> </span>foo</div>',
20 'delete',
21 '<div contenteditable>bar |<span>\u{00A0}</span>foo</div>'),
22 'Delete characters and convert SPACEs to NBSP');
23
24 test(() => assert_selection(
25 '<div contenteditable>bar ^baz|<span> \u{00A0} </span>foo</div>',
26 'delete',
27 '<div contenteditable>bar |<span>\u{00A0} \u{00A0}</span>foo</div>'),
28 'Delete characters and convert NBSP+SPACEs to NBSPs+SPACE');
29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698