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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/inserting/insert-div-024.html

Issue 2338013005: Convert editing/inserting/insert-div-02[34].html to use w3c test harness (Closed)
Patch Set: 2016-09-15T10:58:53 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
OLDNEW
(Empty)
1 <html>
2 <head>
3
4 <style>
5 body {
6 font-size: 24px;
7 }
8 .editing {
9 border: 2px solid red;
10 padding: 12px;
11 }
12 p {
13 border: 2px solid blue;
14 padding: 12px;
15 }
16 br {
17 background-color: green;
18 }
19
20 </style>
21 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script >
22
23 <script>
24
25 function editingTest() {
26 for (i = 0; i < 6; i++)
27 extendSelectionForwardByCharacterCommand();
28 boldCommand();
29 moveSelectionForwardByCharacterCommand();
30 insertParagraphCommand();
31 boldCommand();
32 for (i = 0; i < 3; i++)
33 typeCharacterCommand();
34 insertParagraphCommand();
35 insertParagraphCommand();
36 for (i = 0; i < 3; i++)
37 typeCharacterCommand();
38 }
39
40 </script>
41
42 <title>Editing Test</title>
43 </head>
44 <body contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
45
46 Test inserting paragraphs and managing typing style correctly: Only "line 1" sho uld be bold. Other lines should be non-bold. Fix for this bug:
47 <a href="rdar://problem/3944492">&lt;rdar://problem/3944492&gt;</a> after pressi ng return twice, text is bold when it shouldn't be
48 <div style="height: 12px"></div>
49
50 <p id="test">line 1</p>
51
52 <script>
53 runEditingTest();
54 </script>
55
56 </body>
57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698