Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / insert-3659587-fix.html
bloba32fb8f9f2708153308b355041ceec3532a04d0b
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
10 </style>
11 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
13 <script>
15 function editingTest() {
16 for (i = 0; i < 3; i++) {
17 typeCharacterCommand();
19 selectAllCommand();
20 boldCommand();
21 moveSelectionForwardByCharacterCommand();
22 for (i = 0; i < 3; i++) {
23 typeCharacterCommand();
25 insertLineBreakCommand();
26 for (i = 0; i < 3; i++) {
27 typeCharacterCommand();
31 </script>
33 <title>Editing Test</title>
34 </head>
35 <body>
36 <p>Test that inserting a line break will preserve bolding. All of the text below should be bold.</p>
37 <div contenteditable id="root" class="editing">
38 <span id="test">test</span>
39 </div>
41 <script>
42 runDumpAsTextEditingTest();
43 </script>
45 </body>
46 </html>