10 border:
4px solid blue;
15 .scenario:first-line { font-weight: bold; font-size:
24px; }
16 .expected:first-line { font-weight: bold; font-size:
24px; }
17 .results { margin-bottom:
10px; border:
2px solid green; font-size:
24px; }
19 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
23 function editingTest() {
24 moveSelectionForwardByLineCommand();
25 for (i
= 0; i
< 18; i
++)
26 extendSelectionForwardByCharacterCommand();
32 <title>Editing Test
</title>
36 <div class=
"explanation">
37 <div class=
"scenario">
40 Our ability to
"edit around" content the HTML editing code does not yet handle very well.
41 <br><i>For this test:
</i>Select and delete a table.
44 <div class=
"expected">
47 The content in the red box must exactly match the content in the green box (except for the border color).
48 <br><i>For this test:
</i>Only table should get deleted.
49 Surrounding content that is not selected should (obviously) not be affected.
57 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
58 <div id=
"test" class=
"editing">
59 before
<table border=
"1">