Explicitly set editingBehavior in some tests.
[WebKit-https.git] / LayoutTests / editing / pasteboard / pasting-object.html
1 <script>
2 if (window.testRunner)
3      testRunner.dumpEditingCallbacks();
4 </script>
5 <body>
6 <p>This tests for a bug where attachments dragged into Mail documents blew all content after the position being pasted into.  You should see "Hello[black box] World!" below.</p>
7 <div id="test" contenteditable="true">Hello World!</div>
8 </body>
9
10 <script>
11 if (window.internals)
12     internals.settings.setEditingBehavior('mac');
13 var s = window.getSelection();
14 s.setPosition(document.getElementById("test"), 0);
15
16 s.modify("move", "forward", "word");
17
18 document.execCommand("InsertHTML", false, "<object style='border: 1px solid #aaa;'></object>");
19 </script>