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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/pasteboard/preserve-trailing-space.html

Issue 2193033004: Restore the collapsed spaces of the text when we copy it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test fails 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 <!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 id="copy" style="width: 10em;">^Copy this area <a href="http://foo/">AVe ryLongWordThatWillWrap|</a></div><div contenteditable id="editor"></div>',
8 selection => {
9 var editor = selection.document.getElementById('editor');
10
11 selection.document.execCommand('copy');
12 selection.collapse(editor);
13 selection.document.execCommand('paste');
14 },
15 '<div id="copy" style="width: 10em;">Copy this area <a href="http://foo/">AVer yLongWordThatWillWrap</a></div><div contenteditable id="editor">Copy this area\u 00A0<a href="http://foo/">AVeryLongWordThatWillWrap|</a></div>'),
16 'Restore the collapsed space');
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698