Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / style-boundary-005.html
blob845fee15e4fdb624146d562b48ff3085fc7b3be0
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
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 language="JavaScript" type="text/JavaScript" ></script>
20 <script>
21 if (window.internals)
22 internals.settings.setEditingBehavior('mac');
24 function editingTest() {
25 moveSelectionForwardByLineCommand();
26 boldCommand();
27 typeCharacterCommand(' ');
28 typeCharacterCommand('f');
29 typeCharacterCommand('o');
30 typeCharacterCommand('u');
31 typeCharacterCommand('r');
32 moveSelectionBackwardByLineCommand();
33 extendSelectionForwardByWordCommand();
34 copyCommand();
35 moveSelectionForwardByWordCommand();
36 moveSelectionForwardByWordCommand();
37 moveSelectionForwardByWordCommand();
38 pasteCommand();
41 </script>
43 <title>Editing Test</title>
44 </head>
45 <body>
47 <div class="explanation">
48 <div class="scenario">
49 Tests:
50 <br>
51 Pasting at style boundary does not crash or produce empty style span(s).
52 </div>
53 <div class="expected-results">
54 Expected Results:
55 <br>
56 Should see this content in the red box below:
57 <br><div>one two three <b>four</b>one</div>
58 </div>
59 </div>
61 <div contenteditable id="root">
62 <div id="test" class="editing">one two three</div>
63 </div>
65 <script>
66 runEditingTest();
67 </script>
69 </body>
70 </html>