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

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

Issue 2174673002: Convert editing/deleting/delete-trailing-ws-00[12].html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-22T15:23:20 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><span>^foo| bar baz</span></div>',
8 'delete',
9 '<div contenteditable><span>|\u{00A0}bar baz</span></div>'),
10 'Delete characters with trailing whitespaces');
11 test(() => assert_selection(
12 '<div contenteditable><span>foo<br>bar| baz</span></div>',
13 selection => {
14 selection.document.execCommand('delete');
15 selection.document.execCommand('delete');
16 selection.document.execCommand('delete');
17 },
18 '<div contenteditable><span>foo<br>|\u{00A0}baz</span></div>'),
19 'Delete characters with trailing whitespaces after BR');
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698