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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/deleting/delete-at-paragraph-boundaries-001.html

Issue 2255063002: Convert editing/deleting/delete-at-paragraph-boundaries-00[1-5].html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-08-18T16:54:17 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/deleting/delete-at-paragraph-boundaries-001-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 <html>
2 <head>
3 <style>
4 .editing {
5 border: 2px solid red;
6 font-size: 24px;
7 }
8 .explanation {
9 border: 2px solid blue;
10 padding: 12px;
11 font-size: 24px;
12 margin-bottom: 24px;
13 }
14 .scenario { margin-bottom: 16px;}
15 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
16 .expected-results:first-line { font-weight: bold }
17 </style>
18 <script src="../editing.js"></script>
19 <script src="../../resources/dump-as-markup.js"></script>
20 <script>
21
22 function editingTest() {
23 moveSelectionForwardByLineCommand();
24 extendSelectionForwardByLineCommand();
25 extendSelectionForwardByCharacterCommand();
26 deleteCommand();
27
28 Markup.description(document.querySelector('.explanation').textContent);
29 Markup.dump('root');
30 }
31
32 </script>
33
34 <title>Editing Test</title>
35 </head>
36 <body>
37
38 <div class="explanation">
39 <div class="scenario">
40 Tests:
41 <br>
42 Deleting when a selection starts in a blank line created by a block with a BR pl aceholder in it and extends to the end of a block.
43 </div>
44 <div class="expected-results">
45 Expected Results:
46 <br>
47 Should see the three lines in the red box. First line should be "A". Next two li nes should be empty. Insertion point should
48 be blinking on the second line (the first blank one).
49 </div>
50 </div>
51
52 <div contenteditable id="root" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
53 <div id="test" class="editing">
54 <p style="margin-top: 0; margin-bottom: 0">A</p>
55 <p style="margin-top: 0; margin-bottom: 0"><BR class="webkit-block-placeholder"> </p>
56 <p style="margin-top: 0; margin-bottom: 0">A</p>
57 <p style="margin-top: 0; margin-bottom: 0"><BR class="webkit-block-placeholder"> </p>
58 </div>
59 </div>
60
61 <script>
62 runEditingTest();
63 </script>
64
65 </body>
66 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698