Changeset 69466 in webkit
- Timestamp:
- Oct 10, 2010 7:14:53 AM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 1 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r69456 r69466 1 2010-10-10 Antonio Gomes <agomes@rim.com> 2 3 Reviewed by Andreas Kling. 4 5 editing/selection/extend-after-mouse-selection.html should use LayoutTestController::setEditingBehavior 6 https://bugs.webkit.org/show_bug.cgi?id=47468 7 8 Changed editing/selection/extend-after-mouse-selection.html to use the LayoutTestController::setEditingBehavior 9 machinary. It makes it possible to remove platform dependent test results by testing through all 10 platform-specific codepath's we have. 11 12 * editing/selection/extend-after-mouse-selection.html: 13 * platform/editing/selection/extend-after-mouse-selection-expected.txt: Added. 14 * platform/mac/editing/selection/extend-after-mouse-selection-expected.txt: Removed. 15 * platform/win/editing/selection/extend-after-mouse-selection-expected.txt: Removed. 16 1 17 2010-10-09 Ryosuke Niwa <rniwa@webkit.org> 2 18 -
trunk/LayoutTests/editing/selection/extend-after-mouse-selection.html
r56639 r69466 14 14 15 15 <script> 16 // FIXME: Expose settings->editingBehavior() and use that here instead.17 var onMacPlatform = navigator.userAgent.search(/\bMac OS X\b/) != -1;18 16 19 function editingTest() { 17 function editingTest(editingBehavior) { 18 19 if (window.layoutTestController) 20 layoutTestController.setEditingBehavior(editingBehavior); 21 20 22 var startTarget = document.getElementById('start'); 21 23 var endTarget = document.getElementById('end'); … … 34 36 extendSelectionBackwardByCharacterCommand(); 35 37 36 37 38 // On Win/Linux the anchor is be fixed after the mouse-selection and never changes. 38 39 // On Mac, the first character-granularity selection after a mouse-selection resets the anchor/focus. 39 if ( onMacPlatform)40 if (editingBehavior == "mac") 40 41 assertSelectionAt(endTarget.firstChild, 2, startTarget.previousSibling, 1); 41 42 else … … 43 44 44 45 extendSelectionForwardByCharacterCommand(); 45 if ( onMacPlatform)46 if (editingBehavior == "mac") 46 47 assertSelectionAt(endTarget.firstChild, 2, startTarget.firstChild, 0); 47 48 else … … 50 51 extendSelectionForwardByLineBoundaryCommand(); 51 52 52 if ( onMacPlatform)53 if (editingBehavior == "mac") 53 54 assertSelectionAt(endTarget.nextSibling, 1, startTarget.firstChild, 0); 54 55 else … … 57 58 extendSelectionBackwardByLineBoundaryCommand(); 58 59 59 if ( onMacPlatform)60 if (editingBehavior == "mac") 60 61 assertSelectionAt(endTarget.nextSibling, 1, startTarget.previousSibling, 0); 61 62 else … … 75 76 76 77 <script> 77 editingTest(); 78 editingTest("mac"); 79 editingTest("win"); 78 80 var successfullyParsed = true; 79 81 </script>
Note: See TracChangeset
for help on using the changeset viewer.