Changeset 60865 in webkit
- Timestamp:
- Jun 8, 2010 1:48:50 PM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r60864 r60865 1 2010-06-08 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Ojan Vafai. 4 5 editingBehavior settings needs to be set back to a reasonable default between tests 6 https://bugs.webkit.org/show_bug.cgi?id=39433 7 8 This is a re-land of r59840 rolled out in r59857 due to DRT limitations. 9 10 * editing/selection/extend-selection-after-double-click-expected.txt: 11 Updated expectations. 12 * editing/selection/extend-selection-after-double-click.html: 13 Use the new DRT support for changing editing behavior. 14 1 15 2010-06-08 Stephen White <senorblanco@chromium.org> 2 16 -
trunk/LayoutTests/editing/selection/extend-selection-after-double-click-expected.txt
r59857 r60865 6 6 7 7 SUCCESS 8 SUCCESS 9 -
trunk/LayoutTests/editing/selection/extend-selection-after-double-click.html
r59852 r60865 19 19 } 20 20 21 function runTest() 21 function logResult(result) 22 { 23 document.getElementById("result").innerHTML += result + "<br/>"; 24 } 25 26 function runTests() 22 27 { 23 28 if (!window.eventSender || !window.layoutTestController) … … 26 31 layoutTestController.dumpAsText(); 27 32 33 runTest("mac", "a paragraph"); 34 runTest("win", "paragra"); 35 } 36 37 function runTest(behavior, expectedText) 38 { 39 layoutTestController.setEditingBehavior(behavior); 28 40 doubleClickWord(); 29 41 getSelection().modify("extend", "backward", "character"); … … 33 45 getSelection().modify("extend", "backward", "character"); 34 46 35 var result;36 47 var selectedText = getSelection().toString(); 37 var onMacPlatform = navigator.userAgent.search(/\bMac OS X\b/) != -1;38 var expectedText = onMacPlatform ? "a paragraph" : "paragra";39 48 if (selectedText == expectedText) 40 result = "SUCCESS";49 logResult("SUCCESS"); 41 50 else 42 result = "FAILURE: The selected text is \"" + selectedText + "\" and should be \"" + expectedText + "\"."; 43 document.getElementById("result").firstChild.data = result; 51 logResult("FAILURE: The selected text is \"" + selectedText + "\" and should be \"" + expectedText + "\"."); 44 52 } 45 53 </script> 46 54 </head> 47 <body onload="runTest ()">55 <body onload="runTests()"> 48 56 <p>This tests modifying a selection created with a double click with shift arrow key.</p> 49 57 <p style="color:green"> … … 55 63 </p> 56 64 <p>This is a para<span style="color:blue" id="start">g</span>raph.</p> 57 <p id="result"> TEST HAS NOT RUN</p>65 <p id="result"></p> 58 66 </body>
Note: See TracChangeset
for help on using the changeset viewer.