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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/deleting/delete-at-paragraph-boundaries-003.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
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 moveSelectionForwardByLineCommand();
25 extendSelectionForwardByLineCommand();
26 extendSelectionForwardByCharacterCommand();
27 deleteCommand();
28 }
29
30 </script>
31
32 <title>Editing Test</title>
33 </head>
34 <body>
35
36 <div class="explanation">
37 <div class="scenario">
38 Tests:
39 <br>
40 Deleting when a selection starts in a blank line created by a block with a BR pl aceholder in it and extends to a character
41 that is not at the end of a block. This ensures that some of our "special-case" code does not run for this case.
42 </div>
43 <div class="expected-results">
44 Expected Results:
45 <br>
46 Should see the two lines in the red box. Each should contain "A" only. Insertion point should
47 be blinking at the start of the second line.
48 </div>
49 </div>
50
51 <div contenteditable id="root" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
52 <div id="test" class="editing">
53 <p style="margin-top: 0; margin-bottom: 0">A</p>
54 <p style="margin-top: 0; margin-bottom: 0"><BR class="webkit-block-placeholder"> </p>
55 <p style="margin-top: 0; margin-bottom: 0">AA</p>
56 </div>
57 </div>
58
59 <script>
60 runEditingTest();
61 </script>
62
63 </body>
64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698