Index: LayoutTests/editing/undo/undo-forward-delete.html |
diff --git a/LayoutTests/editing/undo/undo-forward-delete.html b/LayoutTests/editing/undo/undo-forward-delete.html |
index 93038c95ee84e46b0254373ce0959c63166c805b..2822001176bd19329d8e180055f5459d030141d1 100644 |
--- a/LayoutTests/editing/undo/undo-forward-delete.html |
+++ b/LayoutTests/editing/undo/undo-forward-delete.html |
@@ -4,7 +4,7 @@ |
<div id="container"> |
<p id="description"></p> |
<p>To test manually, place the cursor before 'w' 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 before 'w' 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(' ') + 1; |
-var endOffset = selectionNode.data.indexOf('d') + 1; |
+var endOffsetMac = selectionNode.data.indexOf('d') + 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 = ''; |