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

Side by Side Diff: LayoutTests/editing/inserting/insert-br-quoted-007.html

Issue 13954003: Remove mail blockquote special case handling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
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();
11
12 var blankLine = document.getElementById('blankLine');
13 var s = window.getSelection();
14 s.setPosition(blankLine, 0);
15 document.execCommand("InsertNewlineInQuotedContent");
16
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");
21 }
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698