Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-blockquote-3.html
blob873f46e6198674d803e0d919bf7dea6b44832641
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;
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');
20 Markup.description("This tests pasting a blockquote into the middle of a paragraph.");
22 var sel = window.getSelection();
23 var div = document.getElementById("div");
25 sel.collapse(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 should not be blockquoted.<br>This should be blockquoted.<br>This should not be blockquoted.</blockquote>");
34 Markup.dump('div');
35 </script>
36 </body>
37 </html>