Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / non-smart-delete.html
blob5584df56540b1116c454a37d5362db1db3a7e152
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>
22 if (window.internals)
23 internals.settings.setEditingBehavior("mac");
24 function editingTest() {
25 extendSelectionForwardByWordCommand();
26 deleteCommand();
29 </script>
31 <title>Editing Test</title>
32 </head>
33 <body>
35 <div class="explanation">
36 <div class="scenario">
37 Tests:
38 <br>
39 Non-smart delete when deleting a word selected via the keyboard.
40 </div>
41 <div class="expected-results">
42 Expected Results:
43 <br>
44 The first word should be deleted. The space following it should remain. It should look like this:
45 <BR>
46 " bar baz"
47 </div>
48 </div>
50 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
51 <div id="test" class="editing">
52 foo bar baz
53 </div>
54 </div>
56 <script>
57 runEditingTest();
58 </script>
60 </body>
61 </html>