Explicitly set editingBehavior in some tests.
[WebKit-https.git] / LayoutTests / editing / undo / undo-delete-boundary.html
1 <html> 
2 <head>
3
4 <style>
5 .editing { 
6     border: 2px solid red; 
7     padding: 12px; 
8     font-size: 24px; 
9 }
10 </style>
11 <script src="../editing.js" language="JavaScript" type="text/JavaScript" ></script>
12
13 <script>
14
15 function editingTest() {
16     moveSelectionForwardByWordCommand();
17     moveSelectionForwardByWordCommand();
18     deleteCommand();
19     deleteCommand();
20     deleteCommand();
21     deleteCommand();
22     undoCommand();
23 }
24
25 </script>
26
27 </head> 
28 <body>
29 <div contenteditable id="root" class="editing">
30 <span id="test">This wo<b>rd </b>should be selected, since the test deleted it a character at a time and then did an undo.</span>
31 </div>
32
33 <script>
34 if (window.internals)
35     internals.settings.setEditingBehavior("mac");
36 runEditingTest();
37 </script>
38
39 </body>
40 </html>