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

Side by Side Diff: LayoutTests/editing/pasteboard/paste-blockquote-3.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 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 blockquote {
6 color: blue;
7 border-left: 2px solid blue;
8 margin: 0px;
9 padding: 0 0 0 20px;
10 }
11 </style>
12 </head>
13 <body>
14 <div id="div" contenteditable="true">This should not be blockquoted. This should not be blockquoted.</div>
15 <script src="../../resources/dump-as-markup.js"></script>
16 <script>
17 if (window.internals)
18 internals.settings.setEditingBehavior('mac');
19
20 Markup.description("This tests pasting a blockquote into the middle of a paragra ph.");
21
22 var sel = window.getSelection();
23 var div = document.getElementById("div");
24
25 sel.setPosition(div, 0);
26 sel.modify("move", "forward", "word");
27 sel.modify("move", "forward", "word");
28 sel.modify("move", "forward", "word");
29 sel.modify("move", "forward", "word");
30 sel.modify("move", "forward", "word");
31 sel.modify("move", "forward", "character");
32 document.execCommand("InsertHTML", false, "<blockquote type='cite'>&nbsp;This sh ould not be blockquoted.<br>This should be blockquoted.<br>This should not be bl ockquoted.</blockquote>");
33
34 Markup.dump('div');
35 </script>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698