Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-4038408-fix.html
blob43e9442d9795b51369db20aae2e9a4ed24de4b12
1 <html>
2 <head>
3 <style>
4 .editing {
5 border: 2px solid red;
6 padding: 12px;
8 blockquote {
9 border-left: 2px solid blue;
10 padding: 1em;
11 margin: 0;
13 </style>
14 <script src="../../resources/dump-as-markup.js"></script>
15 <script src="../editing.js" language="JavaScript" type="text/JavaScript" ></script>
17 <script>
19 function editingTest() {
20 Markup.description('rdar://problems/4038408&4154187&4125087&4125381, This tests deletion from underneath quoted text:');
22 Markup.dump('test', 'before deletion');
24 // Move the caret to the end of #test
25 selectAllCommand();
26 moveSelectionForwardByCharacterCommand();
28 // Delete the reply text
29 deleteCommand();
30 deleteCommand();
31 deleteCommand();
32 deleteCommand();
33 Markup.dump('test', 'after deletion');
35 insertNewlineInQuotedContentCommand();
36 document.execCommand("InsertText", false, "This text should not be quoted.");
38 Markup.dump('test', 'after insert text');
41 </script>
43 <title>Editing Test</title>
44 </head>
45 <body>
46 <p>Radar: <a href="rdar://problems/4038408&4154187&4125087&4125381">rdar://problems/4038408&4154187&4125087&4125381</a>
47 Deletion of reply text should not produce reply text style unless the caret is inside the reply text blockquote.</p>
48 <p>This tests deletion from underneath quoted text:</p>
49 <div contenteditable id="test" class="editing">
50 <div><BR class="khtml-block-placeholder"></div>
51 <div>
52 <blockquote style="color:blue;" type="cite">
53 <div>Here is some reply text</div>
54 <div>It should have the reply text style</div>
55 <div><BR class="khtml-block-placeholder"></div>
56 <div><BR class="khtml-block-placeholder"></div>
57 <div><BR class="khtml-block-placeholder"></div>
58 </blockquote>
61 <div><BR class="khtml-block-placeholder"></div>
62 </div>
64 </div>
65 </div>
67 </div>
69 <script>
70 runEditingTest();
71 </script>
73 </body>
74 </html>