Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / deleting / 2610675-2.html
1 <html>
2 <head>
3 <style>
4 blockquote[type="cite"] {
5     color: blue;
6     margin: 0px;
7     padding-left: 4px;
8     border-left: 2px solid blue;
9 }
10 </style>
11 </head>
12 <body>
13 <div id="description">This tests to see that if the caret is in an empty quoted paragraph, and there's no quoted content before that paragraph, then pressing delete removes that paragraph's quoting and the empty line.  Below you should see the attribution line, an unquoted paragraph, and then two quoted paragraphs with "quoted" in them.</div>
14 <div id="edit" contentEditable="true">
15 <div><br></div>
16 <div>On Tuesday, Justin wrote:</div>
17 <div><br></div>
18 <blockquote type="cite" id="blockquote"><br>quoted<br>quoted</blockquote>
19 </div>
20
21 <script>
22 if (window.testRunner)
23     window.testRunner.dumpAsText();
24 blockquote = document.getElementById("blockquote");
25 window.getSelection().setPosition(blockquote, 0);
26 document.execCommand("Delete");
27 document.execCommand("InsertText", false, "not quoted");
28 if (window.testRunner)
29     document.body.innerText = document.getElementById("description").innerText + "\n" + document.getElementById("edit").innerHTML;
30 </script>
31
32 </body>
33 </html>