OLD | NEW |
---|---|
1 <script> | 1 <script src="../../fast/js/resources/js-test-pre.js"></script> |
2 if (window.testRunner) | 2 <script src="./resources/js-test-selection-shared.js"></script> |
3 testRunner.dumpEditingCallbacks(); | |
4 </script> | |
5 <p>This tests moving the caret forward through content of mixed editability. Th e caret should move down one line from the editable piece to the editable piece that's embedded in a non-editable piece.</p> | |
6 | 3 |
7 <div contenteditable="true" id="test"> | 4 <div contenteditable="true" id="test"> |
8 editable | 5 <span id="e1">1 editable</span> |
9 <table border="1" contenteditable="false"><tr><td contenteditable="true">editabl e</td></tr></table> | 6 <table border="1" contenteditable="false"><tr><td contenteditable="true">editabl e</td></tr></table> |
10 editable | 7 <span id="e2">2 editable</span> |
11 </div> | 8 </div> |
12 | 9 |
13 <script> | 10 <script> |
14 var e = document.getElementById("test"); | 11 description('This tests moving the caret forward through content of mixed editab ility. The caret should not be in non-editable piece.'); |
15 var s = window.getSelection(); | |
16 | 12 |
17 s.setPosition(e, 0); | 13 testCaretMotion('both', 'line', 1, 'e1', 0, 'e2', 0); |
ojan
2013/05/22 02:25:20
These tests are kind of hard to read. Can you inst
yosin_UTC9
2013/05/22 07:54:12
Done.
| |
14 testCaretMotion('both', 'line', 1, 'e1', -1, 'e2', -1); | |
18 | 15 |
19 s.modify("move", "forward", "line"); | 16 if (window.testRunner) |
17 $('test').outerHTML = ''; | |
20 </script> | 18 </script> |
19 <script src="../../fast/js/resources/js-test-post.js"></script> | |
OLD | NEW |