| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <div id="container"> | 4 <div id="container"> |
| 5 <p id="description"></p> | 5 <p id="description"></p> |
| 6 <p>To test manually, place the cursor at the end of 'word' and delete it complet
ely character by character. Do ctrl+z. On Mac, 'word' should be selected. On oth
er platforms 'word' should not be selected and the cursor should be placed at th
e end of 'word'.</p> | 6 <p>To test manually, place the cursor at the end of 'word' and delete it complet
ely character by character. Do ctrl+z. On Mac, 'word' should be selected. On oth
er platforms 'word' should not be selected and the cursor should be placed at th
e end of 'word'.</p> |
| 7 <div id="test" style="border: 2px solid red;" contenteditable >This wo<b>rd </b>
should be selected only on mac.</div> | 7 <div id="test" style="border: 2px solid red;" contenteditable >This wo<b>rd </b>
should be selected only on mac.</div> |
| 8 </div> | 8 </div> |
| 9 <div id="console"></div> | 9 <div id="console"></div> |
| 10 <script src="../../fast/js/resources/js-test-pre.js"></script> | 10 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 if (window.internals) { | 39 if (window.internals) { |
| 40 undoTest('mac', selectionNode, selectionOffset, endNodeMac, endOffsetMac, 'w
ord'); | 40 undoTest('mac', selectionNode, selectionOffset, endNodeMac, endOffsetMac, 'w
ord'); |
| 41 undoTest('win', selectionNode, selectionOffset, selectionNode, selectionOffs
et, ''); | 41 undoTest('win', selectionNode, selectionOffset, selectionNode, selectionOffs
et, ''); |
| 42 undoTest('unix', selectionNode, selectionOffset, selectionNode, selectionOff
set, ''); | 42 undoTest('unix', selectionNode, selectionOffset, selectionNode, selectionOff
set, ''); |
| 43 undoTest('android', selectionNode, selectionOffset, selectionNode, selection
Offset, ''); | 43 undoTest('android', selectionNode, selectionOffset, selectionNode, selection
Offset, ''); |
| 44 } | 44 } |
| 45 if (window.testRunner) | 45 if (window.testRunner) |
| 46 document.getElementById('container').outerHTML = ''; | 46 document.getElementById('container').outerHTML = ''; |
| 47 </script> | 47 </script> |
| 48 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 49 </body> | 48 </body> |
| 50 </html> | 49 </html> |
| OLD | NEW |