Changeset 70429 in webkit
- Timestamp:
- Oct 24, 2010 6:21:33 PM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 1 added
- 4 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r70416 r70429 1 2010-10-22 MORITA Hajime <morrita@google.com> 2 3 Reviewed by Tony Chang. 4 5 Text test conversion: editing/spelling/spelling-linebreak.html 6 https://bugs.webkit.org/show_bug.cgi?id=47649 7 8 Rewrote verification part using hasSpellingMarker(). 9 10 * editing/spelling/spelling-linebreak-expected.txt: Added. 11 * editing/spelling/spelling-linebreak.html: 12 * platform/gtk/editing/spelling/spelling-linebreak-expected.txt: Removed. 13 * platform/mac/editing/spelling/spelling-linebreak-expected.checksum: Removed. 14 * platform/mac/editing/spelling/spelling-linebreak-expected.png: Removed. 15 * platform/mac/editing/spelling/spelling-linebreak-expected.txt: Removed. 16 1 17 2010-10-24 Daniel Bates <dbates@rim.com> 2 18 -
trunk/LayoutTests/editing/spelling/spelling-linebreak.html
r40317 r70429 12 12 13 13 <script> 14 function log(msg) { 15 document.getElementById("console").innerHTML += (msg + "\n"); 16 } 14 17 15 18 function editingTest() { 19 20 if (window.layoutTestController) 21 layoutTestController.dumpAsText(); 22 var elem = document.getElementById("test"); 23 var selection = window.getSelection(); 24 selection.setPosition(elem, 6); 25 16 26 typeCharacterCommand('z'); 17 27 typeCharacterCommand('z'); … … 22 32 moveSelectionBackwardByWordCommand(); 23 33 insertLineBreakCommand(); 34 35 if (window.layoutTestController) { 36 selection.setPosition(elem, 0); 37 if (layoutTestController.hasSpellingMarker(6, 2)) 38 log("PASS"); 39 else 40 log("FAIL"); 41 document.getElementById("root").style.display = "none"; 42 } 43 24 44 } 25 45 … … 31 51 <div>You should see 'zz a' on the first line below, and 'a' on the second line. 'zz' (and only 'zz') should be marked as misspelled.</div> 32 52 <div contenteditable id="root" class="editing"> 33 <span id="test"></span> 53 <!-- wee need leading "Hello," to preserve the marker even after setPosition() --> 54 <span id="test">Hello,</span> 34 55 </div> 35 56 <pre id="console"></pre> 36 57 <script> 37 runEditingTest();58 editingTest(); 38 59 </script> 39 60
Note: See TracChangeset
for help on using the changeset viewer.