| 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 after 'o' in 'word' and delete it complete
ly character by character. Do ctrl+z. On Mac, 'word' should be selected. On othe
r platforms 'word' should not be selected and the cursor should be placed after
'o' in 'word'.</p> | 6 <p>To test manually, place the cursor after 'o' in 'word' and delete it complete
ly character by character. Do ctrl+z. On Mac, 'word' should be selected. On othe
r platforms 'word' should not be selected and the cursor should be placed after
'o' in 'word'.</p> |
| 7 <div id="test" style="border: 2px solid red;" contenteditable>This word should b
e selected only on mac.</div> | 7 <div id="test" style="border: 2px solid red;" contenteditable>This word should b
e 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 if (window.internals) { | 37 if (window.internals) { |
| 38 undoTest('mac', selectionNode, startOffsetMac, selectionNode, endOffsetMac,
'word'); | 38 undoTest('mac', selectionNode, startOffsetMac, selectionNode, endOffsetMac,
'word'); |
| 39 undoTest('win', selectionNode, selectionOffset, selectionNode, selectionOffs
et, ''); | 39 undoTest('win', selectionNode, selectionOffset, selectionNode, selectionOffs
et, ''); |
| 40 undoTest('unix', selectionNode, selectionOffset, selectionNode, selectionOff
set, ''); | 40 undoTest('unix', selectionNode, selectionOffset, selectionNode, selectionOff
set, ''); |
| 41 undoTest('android', selectionNode, selectionOffset, selectionNode, selection
Offset, ''); | 41 undoTest('android', selectionNode, selectionOffset, selectionNode, selection
Offset, ''); |
| 42 } | 42 } |
| 43 if (window.testRunner) | 43 if (window.testRunner) |
| 44 document.getElementById('container').outerHTML = ''; | 44 document.getElementById('container').outerHTML = ''; |
| 45 </script> | 45 </script> |
| 46 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 47 </body> | 46 </body> |
| 48 </html> | 47 </html> |
| OLD | NEW |