Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / smart-delete-002.html
blob9430ee2f0a062c37a8a2079d1a65821444670164
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 font-size: 24px;
9 .explanation {
10 border: 2px solid blue;
11 padding: 12px;
12 font-size: 24px;
13 margin-bottom: 24px;
15 .scenario { margin-bottom: 16px;}
16 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
17 .expected-results:first-line { font-weight: bold }
18 </style>
19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
21 <script>
23 function editingTest() {
24 if (window.internals)
25 internals.settings.setEditingBehavior('mac');
26 moveSelectionForwardByWordCommand();
27 moveSelectionForwardByCharacterCommand();
28 doubleClickAtSelectionStart();
29 deleteCommand();
32 </script>
34 <title>Editing Test</title>
35 </head>
36 <body>
38 <div class="explanation">
39 <div class="scenario">
40 Tests:
41 <br>
42 Smart delete when deleting the second word of a line.
43 </div>
44 <div class="expected-results">
45 Expected Results:
46 <br>
47 The second word and the space before the second word should be deleted. It should like this this:
48 <BR>
49 foo baz
50 </div>
51 </div>
53 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
54 <div id="test" class="editing">
55 foo bar baz
56 </div>
57 </div>
59 <script>
60 runEditingTest();
61 </script>
63 </body>
64 </html>