Changeset 147146 in webkit
- Timestamp:
- Mar 28, 2013 12:59:22 PM (11 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r147143 r147146 1 2013-03-28 Claudio Saavedra <csaavedra@igalia.com> 2 3 Prepare extend-selection-enclosing-block test to support different editing behavior 4 https://bugs.webkit.org/show_bug.cgi?id=113424 5 6 Reviewed by Ryosuke Niwa. 7 8 We make this test Mac specific and change 9 extendAndLogSelectionWithinBlock() to take the platform as a 10 parameter. When bug 110487 is fixed this should be extended to 11 test the Windows editing behavior. 12 13 * editing/selection/extend-selection-enclosing-block-mac-expected.txt: 14 Renamed from 15 LayoutTests/editing/selection/extend-selection-enclosing-block-expected.txt. 16 * editing/selection/extend-selection-enclosing-block-mac.html: 17 Renamed from 18 LayoutTests/editing/selection/extend-selection-enclosing-block.html. 19 * editing/selection/resources/extend-selection.js: 20 (extendAndLogSelectionWithinBlock): Extend to receive platform as 21 a parameter. Only "mac" is supported for now. 22 1 23 2013-03-28 Claudio Saavedra <csaavedra@igalia.com> 2 24 -
trunk/LayoutTests/editing/selection/extend-selection-enclosing-block-mac.html
r147144 r147146 9 9 <pre id="console"></pre> 10 10 <script> 11 if (window.internals) 12 internals.settings.setEditingBehavior("mac"); 13 11 14 function runSelectionTestsWithGranularityForEnclosingBlock(testNodes, granularity) 12 15 { … … 16 19 log("Test " + (i + 1) + ", LTR:\n"); 17 20 log(" Extending right: "); 18 extendAndLogSelectionWithinBlock("right", granularity );21 extendAndLogSelectionWithinBlock("right", granularity, "mac"); 19 22 20 23 log(" Extending left: "); 21 extendAndLogSelectionWithinBlock("left", granularity );24 extendAndLogSelectionWithinBlock("left", granularity, "mac"); 22 25 } 23 26 } -
trunk/LayoutTests/editing/selection/resources/extend-selection.js
r120173 r147146 107 107 } 108 108 109 function extendAndLogSelectionWithinBlock(direction, granularity )110 { 111 return extendAndLogSelection( extendSelectionWithinBlock, direction, granularity);109 function extendAndLogSelectionWithinBlock(direction, granularity, platform) 110 { 111 return extendAndLogSelection({'mac': extendSelectionWithinBlock}[platform], direction, granularity); 112 112 } 113 113
Note: See TracChangeset
for help on using the changeset viewer.