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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/pasteboard/5065605.html

Issue 2342673003: Convert editing/pasteboard/5065605.html to use w3c test harness (Closed)
Patch Set: 2016-09-15T18:02:22 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/5065605-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="div" contenteditable="true"><br></div>
5 <script src="../../resources/dump-as-markup.js"></script>
6 <script>
7 var div = document.getElementById("div");
8 div.focus();
9
10 if (window.testRunner)
11 testRunner.dumpEditingCallbacks();
12
13 document.execCommand("InsertText", false, "This text should be red.");
14 document.execCommand("InsertParagraph");
15 document.execCommand("InsertText", false, "This text should be red.");
16 document.execCommand("SelectAll");
17 document.execCommand("ForeColor", false, "red");
18 document.execCommand("Copy");
19 window.getSelection().modify("move", "forward", "character");
20 document.execCommand("InsertParagraph");
21 document.execCommand("Paste");
22
23 Markup.description('This tests for a bug where text copied with Select All + Cop y would lose its color.');
24 Markup.dump('div');
25
26 </script>
27 </body>
28 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/5065605-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698