| Index: LayoutTests/editing/undo/undo-delete.html
|
| diff --git a/LayoutTests/editing/undo/undo-delete.html b/LayoutTests/editing/undo/undo-delete.html
|
| index 6c99881146c5892fb25c19a790fc9985a2c9abbb..ba6fdce72e6d6cae51ac3c0c5108e5c094dd9ee8 100644
|
| --- a/LayoutTests/editing/undo/undo-delete.html
|
| +++ b/LayoutTests/editing/undo/undo-delete.html
|
| @@ -4,7 +4,7 @@
|
| <div id="container">
|
| <p id="description"></p>
|
| <p>To test manually, place the cursor at the end of 'word' and delete it completely character 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 at the end of 'word'.</p>
|
| -<div id="test" style="border: 2px solid red;" contenteditable>This word should be selected.</div>
|
| +<div id="test" style="border: 2px solid red;" contenteditable>This word should be selected only on mac.</div>
|
| </div>
|
| <div id="console"></div>
|
| <script src="../../fast/js/resources/js-test-pre.js"></script>
|
| @@ -12,7 +12,7 @@
|
| description('Verifies the selection behavior on undoing a text deletion.');
|
| var selectionNode = document.getElementById('test').firstChild;
|
| var selectionOffset = selectionNode.data.indexOf('d') + 1;
|
| -var endOffset = selectionNode.data.indexOf(' ') + 1;
|
| +var endOffsetMac = selectionNode.data.indexOf(' ') + 1;
|
| var selection = window.getSelection();
|
|
|
| function undoTest(platform, expectedStartNode, expectedStartOffset, expectedEndNode, expectedEndOffset, selectedText) {
|
| @@ -32,10 +32,10 @@ function undoTest(platform, expectedStartNode, expectedStartOffset, expectedEndN
|
| }
|
|
|
| if (window.internals) {
|
| - undoTest('mac', selectionNode, selectionOffset, selectionNode, endOffset, 'word');
|
| - undoTest('win', selectionNode, selectionOffset, selectionNode, endOffset, 'word');
|
| - undoTest('unix', selectionNode, selectionOffset, selectionNode, endOffset, 'word');
|
| - undoTest('android', selectionNode, selectionOffset, selectionNode, endOffset, 'word');
|
| + undoTest('mac', selectionNode, selectionOffset, selectionNode, endOffsetMac, 'word');
|
| + undoTest('win', selectionNode, selectionOffset, selectionNode, selectionOffset, '');
|
| + undoTest('unix', selectionNode, selectionOffset, selectionNode, selectionOffset, '');
|
| + undoTest('android', selectionNode, selectionOffset, selectionNode, selectionOffset, '');
|
| }
|
| if (window.testRunner)
|
| document.getElementById('container').outerHTML = '';
|
|
|