Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-text-018.html
blob221eb108fb41f67fbbc7d3959ea905500fddb4e4
1 <html>
2 <head>
3 <style>
4 .editing {
5 border: 2px solid red;
6 font-size: 24px;
8 .explanation {
9 border: 2px solid blue;
10 padding: 12px;
11 font-size: 24px;
12 margin-bottom: 24px;
14 .scenario { margin-bottom: 16px;}
15 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
16 .expected-results:first-line { font-weight: bold }
17 </style>
18 <script src="../editing.js"></script>
19 <script src="../../resources/dump-as-markup.js"></script>
20 <title>Editing Test</title>
21 </head>
22 <body>
23 <div class="explanation">
24 <div class="scenario">
25 Tests:
26 <br>
27 Fix for this bug:
28 <a href="rdar://problem/4039676">&lt;rdar://problem/4039676&gt;</a> REGRESSION (Mail): in reply, <cr> on pasted text (without trailing newline) is eaten when pasted above date
29 </div>
30 <div class="expected-results">
31 Expected Results:
32 <br>
33 Should see two lines of text below, self-documenting themselves as "line one" and "line two".
34 </div>
35 </div>
37 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
38 <div id="test" class="editing">
39 line one<br>line two
40 </div>
41 </div>
42 <script>
44 Markup.description(document.getElementsByClassName('explanation')[0].textContent);
46 function editingTest() {
47 for (i = 0; i < 8; i++)
48 extendSelectionForwardByCharacterCommand();
49 cutCommand();
50 Markup.dump('root', 'After copy');
51 pasteCommand();
52 Markup.dump('root', 'After paste');
55 runEditingTest();
56 </script>
57 </body>
58 </html>