Changeset 55852 in webkit
- Timestamp:
- Mar 11, 2010 12:18:53 PM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 1 added
- 4 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r55848 r55852 1 2010-03-11 Martin Robinson <mrobinson@webkit.org> 2 3 Reviewed by Adam Barth 4 5 Convert editing/selection/5136696.html to dumpAsText 6 https://bugs.webkit.org/show_bug.cgi?id=34306 7 8 * editing/selection/5136696-expected.txt: Added. 9 * editing/selection/5136696.html: Use dumpAsText now. 10 * platform/gtk/Skipped: Unskip this test in GTK+ now that it has expected result. 11 * platform/mac/editing/selection/5136696-expected.checksum: Removed. 12 * platform/mac/editing/selection/5136696-expected.png: Removed. 13 * platform/mac/editing/selection/5136696-expected.txt: Removed. 14 * platform/qt/editing/selection/5136696-expected.txt: Removed. 15 * platform/win/editing/selection/5136696-expected.txt: Removed. 16 1 17 2010-03-11 Chris Fleizach <cfleizach@apple.com> 2 18 -
trunk/LayoutTests/editing/selection/5136696.html
r49592 r55852 1 1 <script> 2 if (window.layoutTestController) 2 if (window.layoutTestController) { 3 window.layoutTestController.dumpAsText(); 3 4 window.layoutTestController.waitUntilDone(); 5 } 6 7 function verifyResults(inputElement, selectedText) { 8 if (document.activeElement != inputElement) { 9 document.body.innerHTML = "FAIL (text field was not selected)"; 10 return; 11 } 12 13 if (frames[0].getSelection().toString() != selectedText) { 14 document.body.innerHTML = "FAIL (unexpected selection)"; 15 return; 16 } 17 18 document.body.innerHTML = "PASS"; 19 } 4 20 5 21 function runTest() { 22 var textToSelect = "This text should be selected, but this frame shouldn't be focused."; 6 23 frame = frames[0]; 7 24 frame.focus(); 8 25 s = frame.getSelection(); 9 26 s.setPosition(frame.document.body, 0); 10 frame.document.execCommand("InsertText", false, "This test should be selected, but this frame shouldn't be focused.");27 frame.document.execCommand("InsertText", false, textToSelect); 11 28 frame.document.execCommand("SelectAll"); 12 document.getElementById("input").focus(); 29 30 var inputElement = document.getElementById("input"); 31 inputElement.focus(); 32 33 verifyResults(inputElement, textToSelect); 34 13 35 if (window.layoutTestController) 14 36 window.layoutTestController.notifyDone(); 15 37 } 16 38 </script> 17 <p>This tests to make sure that a selection in one fr omisn't cleared when focusing a node in a different frame.</p>39 <p>This tests to make sure that a selection in one frame isn't cleared when focusing a node in a different frame.</p> 18 40 <iframe border="1" src="../resources/contenteditable-iframe-src.html" onload="runTest();"></iframe><br> 19 41 <input type="text" id="input" value="This text field should be focused." size="30"> -
trunk/LayoutTests/platform/gtk/Skipped
r55842 r55852 1126 1126 editing/selection/4947387.html 1127 1127 editing/selection/4975120.html 1128 editing/selection/5136696.html1129 1128 editing/selection/5195166-1.html 1130 1129 editing/selection/5195166-2.html
Note: See TracChangeset
for help on using the changeset viewer.