Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / insert-br-quoted-007.html
blob926f302d86c6b4fb3daf18e2bcdece46e472f7ec
1 <html>
2 <head>
3 <style>
4 div { border:1px solid red; }
5 blockquote { border:1px solid blue; }
6 </style>
7 <script>
8 function runTest() {
9 if (window.testRunner)
10 window.testRunner.dumpAsText();
12 var blankLine = document.getElementById('blankLine');
13 var s = window.getSelection();
14 s.collapse(blankLine, 0);
15 document.execCommand("InsertNewlineInQuotedContent");
17 if (blankLine.nextSibling.nodeName == "BR")
18 console.log("SUCCESS! newline inserted AFTER quoted content");
19 else
20 console.log("FAILED! newline inserted BEFORE quoted content");
22 </script>
23 </head>
24 <body onload="runTest()">
25 <div><br></div>
26 <div contentEditable="true">
27 <blockquote type="cite">Line of text</blockquote>
28 <blockquote type="cite" id="blankLine"><br></blockquote>
29 </div>
30 </body>
31 </html>