Changeset 73009 in webkit
- Timestamp:
- Nov 30, 2010 9:37:32 PM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 1 added
- 15 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r73005 r73009 1 2010-11-30 Avi Drissman <avi@google.com> 2 3 Reviewed by Darin Adler. 4 5 Add preference to not select when right-clicked 6 https://bugs.webkit.org/show_bug.cgi?id=23351 7 8 Removed 5109817 because it is entirely superseded by 9 context-menu-text-selection; updated 5354455-1 to explicitly set the 10 editing behavior and test all three platforms. 11 12 * editing/selection/5109817.html: Removed. 13 * editing/selection/5354455-1-expected.txt: Added. 14 * editing/selection/5354455-1.html: 15 * platform/chromium-win/editing/selection/5109817-expected.txt: Removed. 16 * platform/chromium-win/editing/selection/5354455-1-expected.txt: Removed. 17 * platform/gtk/editing/selection/5109817-expected.txt: Removed. 18 * platform/gtk/editing/selection/5354455-1-expected.txt: Removed. 19 * platform/mac-leopard/editing/selection/5109817-expected.checksum: Removed. 20 * platform/mac-leopard/editing/selection/5109817-expected.png: Removed. 21 * platform/mac/editing/selection/5109817-expected.checksum: Removed. 22 * platform/mac/editing/selection/5109817-expected.png: Removed. 23 * platform/mac/editing/selection/5109817-expected.txt: Removed. 24 * platform/mac/editing/selection/5354455-1-expected.txt: Removed. 25 * platform/win/editing/selection/5109817-expected.checksum: Removed. 26 * platform/win/editing/selection/5109817-expected.png: Removed. 27 * platform/win/editing/selection/5109817-expected.txt: Removed. 28 * platform/win/editing/selection/5354455-1-expected.txt: Removed. 29 1 30 2010-11-30 Rob Buis <rwlbuis@gmail.com> 2 31 -
trunk/LayoutTests/editing/selection/5354455-1.html
r68948 r73009 1 <script src="../../resources/dump-as-markup.js"></script> 2 3 <p>This tests whether right clicking on a paragraph break in editable content selects it. The break should be selected on OS X, but not on Windows or Linux. To run it manually, right click on the paragraph break after the first paragraph below.</p> 4 <div id="dump"> 1 <p>This tests whether right clicking on a paragraph break in editable content selects it. The break should be selected on OS X, but not on Windows or Unix. To run it manually, right click on the paragraph break after the first paragraph below.</p> 5 2 <div id="div" contenteditable="true"> 6 3 <div><span id="text">The following paragraph break should be selected on OS X.</span></div> 7 4 <br> 8 5 </div> 9 </div> 6 <p>Mac: <span id="resultmac">RUNNING</span></p> 7 <p>Win: <span id="resultwin">RUNNING</span></p> 8 <p>Unix: <span id="resultunix">RUNNING</span></p> 10 9 11 10 <script> 12 if (window.layoutTestController) { 11 function test(platform, result) { 12 window.getSelection().removeAllRanges(); 13 layoutTestController.setEditingBehavior(platform); 14 13 15 paragraph = document.getElementById("text"); 14 16 x = paragraph.offsetParent.offsetLeft + paragraph.offsetLeft + paragraph.offsetWidth + 10; … … 20 22 // Right click on the paragraph break to select it. 21 23 eventSender.contextClick(); 24 // esc key to kill the context menu. 25 eventSender.keyDown(String.fromCharCode(0x001B), null); 26 27 document.getElementById(result).innerHTML = window.getSelection().type; 22 28 } 23 Markup.dump(document.getElementById("dump")); 29 30 if (window.eventSender && window.layoutTestController) { 31 layoutTestController.dumpAsText(); 32 33 test('mac', 'resultmac'); 34 test('win', 'resultwin'); 35 test('unix', 'resultunix'); 36 } 24 37 </script> 25 38
Note: See TracChangeset
for help on using the changeset viewer.