Changeset 59852 in webkit
- Timestamp:
- May 20, 2010 11:36:30 AM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r59850 r59852 1 2010-05-20 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 Revert the changes from r59840 to this test until there is a method 9 in the WebKit APIs to consistently reset the editingBehavior setting 10 to a reasonable default. 11 12 * editing/selection/extend-selection-after-double-click.html: Revert previous changes to this test. 1 13 2010-05-20 Victor Wang <victorw@chromium.org> 2 14 -
trunk/LayoutTests/editing/selection/extend-selection-after-double-click.html
r59840 r59852 19 19 } 20 20 21 function logResult(result) 22 { 23 document.getElementById("result").innerHTML += result + "<br/>"; 24 } 25 26 function runTests() 21 function runTest() 27 22 { 28 23 if (!window.eventSender || !window.layoutTestController) … … 31 26 layoutTestController.dumpAsText(); 32 27 33 runTest("mac", "a paragraph");34 runTest("win", "paragra");35 }36 37 function runTest(behavior, expectedText)38 {39 layoutTestController.setEditingBehavior(behavior);40 28 doubleClickWord(); 41 29 getSelection().modify("extend", "backward", "character"); … … 45 33 getSelection().modify("extend", "backward", "character"); 46 34 35 var result; 47 36 var selectedText = getSelection().toString(); 37 var onMacPlatform = navigator.userAgent.search(/\bMac OS X\b/) != -1; 38 var expectedText = onMacPlatform ? "a paragraph" : "paragra"; 48 39 if (selectedText == expectedText) 49 logResult("SUCCESS");40 result = "SUCCESS"; 50 41 else 51 logResult("FAILURE: The selected text is \"" + selectedText + "\" and should be \"" + expectedText + "\"."); 42 result = "FAILURE: The selected text is \"" + selectedText + "\" and should be \"" + expectedText + "\"."; 43 document.getElementById("result").firstChild.data = result; 52 44 } 53 45 </script> 54 46 </head> 55 <body onload="runTest s()">47 <body onload="runTest()"> 56 48 <p>This tests modifying a selection created with a double click with shift arrow key.</p> 57 49 <p style="color:green"> … … 63 55 </p> 64 56 <p>This is a para<span style="color:blue" id="start">g</span>raph.</p> 65 <p id="result"> </p>57 <p id="result">TEST HAS NOT RUN</p> 66 58 </body>
Note: See TracChangeset
for help on using the changeset viewer.