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

Side by Side Diff: LayoutTests/editing/pasteboard/copy-text-with-wrapped-tag.html

Issue 165083002: Issue 318925: Copy and paste sometimes removes spaces between words (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Issue 318925: Copy and paste sometimes removes spaces between words Created 6 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/editing/pasteboard/copy-text-with-wrapped-tag-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="description">This tests to make sure that copying and pasting a text fo llowed by an anchor tag wrapped into 2nd line do not lose the space between text and tag in the destination.</div>
5 <div id="copy" style="width: 10em; border: thin solid green;">Copy this text <a href="http://www.google.com">AVeryLongWordThatWillWrap</a></div>
6 <div id="paste" contentEditable="true" style="border: thin solid blue;"></div>
7
8 <script src="../../resources/dump-as-markup.js"></script>
9 <script>
10
11 Markup.description(document.getElementById('description').textContent);
12 Markup.dump('copy', 'Original');
13
14 copy = document.getElementById("copy");
15 window.getSelection().setBaseAndExtent(copy, 0, copy, copy.childNodes.length);
16 document.execCommand("Copy");
17
18 if (window.testRunner) {
19 paste = document.getElementById("paste");
20 window.getSelection().setPosition(paste, 0);
21 document.execCommand("Paste");
22
23 Markup.dump('paste', 'Pasted');
24 }
25
26 </script>
27 </body>
28 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/pasteboard/copy-text-with-wrapped-tag-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698