Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-br-012.html
blob01ef3e46c14cbbc7a563eed5da50351e0fef93dd
1 <html>
2 <head>
3 <style>
4 .editing {
5 border: 2px solid red;
6 padding: 12px;
7 font-size: 24px;
9 </style>
10 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
11 <script src="../../resources/dump-as-markup.js"></script>
12 <script>
14 Markup.waitUntilDone();
16 function test() {
17 Markup.description("This tests pressing delete key to remove empty quoted line places cursor at the right location. rdar://problem/4813973");
18 window.getSelection().collapse(document.getElementById('test'), 0);
19 deleteCommand();
20 Markup.dump(document.body);
21 Markup.notifyDone();
24 </script>
25 <title>Editing Test</title>
26 </head>
27 <body onload="test()" contenteditable id="root">
28 <div class="editing">
29 <div style="border-style:solid; border-color:black;">
30 hello
31 </div>
32 <br>
33 </div>
34 <div id="test" style="border-style:solid; border-color:blue;">
35 <br>
36 </div>
37 </body>
38 </html>