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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/pasteboard/paste-text-019.html

Issue 2184033002: Convert editing/paste-text-019.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-27T14:08:02 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/paste_text_with_text_transform.html » ('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 <html>
2 <head>
3
4 <style>
5 .editing {
6 border: 2px solid red;
7 font-size: 24px;
8 }
9 .explanation {
10 border: 2px solid blue;
11 padding: 12px;
12 font-size: 24px;
13 margin-bottom: 24px;
14 }
15 .scenario { margin-bottom: 16px;}
16 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
17 .expected-results:first-line { font-weight: bold }
18 </style>
19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script >
20
21 <script>
22
23 function editingTest() {
24 for (i = 0; i < 4; i++)
25 moveSelectionForwardByCharacterCommand();
26 for (i = 0; i < 3; i++)
27 extendSelectionForwardByCharacterCommand();
28 copyCommand();
29 for (i = 0; i < 4; i++)
30 moveSelectionForwardByCharacterCommand();
31 moveSelectionForwardByCharacterCommand();
32 pasteAndMatchStyleCommand();
33 }
34
35 </script>
36
37 <title>Editing Test</title>
38 </head>
39 <body>
40 <div class="explanation">
41 <div class="scenario">
42 Tests:
43 <br>
44 Fix for this bug:
45 <a href="https://bugs.webkit.org/show_bug.cgi?id=3429">&lt;http://bugzilla.opend arwin.org/show_bug.cgi?id=3429&gt;</a> Text transformed with text-transform does not copy with transform applied
46 </div>
47 <div class="expected-results">
48 Expected Results:
49 <br>
50 Should see the string <pre>Foo Bar baz Bar</pre> (case sensitive).
51 </div>
52 </div>
53 <div contenteditable id="root" class="editing">
54 <span id="test"><span style="text-transform: capitalize;">foo bar</span> baz</sp an>
55 </div>
56
57 <script>
58 runEditingTest();
59 </script>
60
61 </body>
62 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/paste_text_with_text_transform.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698