11 border:
2px solid blue;
16 .scenario { margin-bottom:
16px;}
17 .scenario:first-line { font-weight: bold; margin-bottom:
16px;}
18 .expected-results:first-line { font-weight: bold }
20 <script src=
"../../resources/dump-as-markup.js"></script>
21 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
25 Markup
.waitUntilDone();
27 function editingTest() {
28 var t1
= document
.getElementById("test1");
29 var t2
= document
.getElementById("test2");
30 setSelectionCommand(t1
, 0, t2
, 3);
32 Markup
.dump('root', 'After copy');
34 var e
= document
.getElementById("target");
35 setSelectionCommand(e
, 0, e
, 1);
36 Markup
.dump('root', 'Before paste');
38 Markup
.dump('root', 'After paste');
45 <title>Editing Test
</title>
47 <body onload=
"runEditingTest();" id=
"root" contenteditable
>
48 <table><tr><td id=
"test1">hello
</td><td id=
"test2">world
</td></tr></table>
49 <div id=
"target">replaceme
</div>