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