Changeset 116777 in webkit
- Timestamp:
- May 11, 2012 9:33:42 AM (12 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r116776 r116777 1 2012-05-11 Allan Sandfeld Jensen <allan.jensen@nokia.com> 2 3 Two of the touch-adjustment tests are flaky. 4 https://bugs.webkit.org/show_bug.cgi?id=86218 5 6 Reviewed by Simon Hausmann. 7 8 Move the touch points and text so the tests are more stable. 9 10 * touchadjustment/event-triggered-widgets-expected.txt: 11 * touchadjustment/event-triggered-widgets.html: 12 * touchadjustment/touch-inlines.html: 13 1 14 2012-05-11 Christophe Dumez <christophe.dumez@intel.com> 2 15 -
trunk/LayoutTests/touchadjustment/event-triggered-widgets-expected.txt
r111185 r116777 28 28 Mouse-over here should give a text input-field. 29 29 Hovering here should give a text input-field. 30 Focusing here should only give focus outline .30 Focusing here should only give focus outline to this inner text. 31 31 Focusing here should give a text input-field. -
trunk/LayoutTests/touchadjustment/event-triggered-widgets.html
r111185 r116777 2 2 <head> 3 3 <style> 4 .box { border: 1px solid black; border-radius: 5px 5px; margin: 1em; max-width: 40em; }4 .box { border: 1px solid black; border-radius: 5px 5px; margin: 1em; width: 40em; } 5 5 </style> 6 6 … … 28 28 } 29 29 30 function findBestClickableNode(x, y, width, height) 31 { 32 var adjustedNode = internals.touchNodeAdjustedToBestClickableNode(x, y, width, height, document); 33 if (adjustedNode && adjustedNode.nodeType == 3) // TEXT node 34 adjustedNode = adjustedNode.parentNode; 35 return adjustedNode; 36 } 37 30 38 function testDirectTouch(element) 31 39 { … … 35 43 var width = 3; 36 44 var height = 3; 37 adjustedNode = internals.touchNodeAdjustedToBestClickableNode(x, y, width, height, document); 38 39 if (adjustedNode.nodeType == 3) // TEXT node 40 adjustedNode = adjustedNode.parentNode; 45 adjustedNode = findBestClickableNode(x, y, width, height); 41 46 } 42 47 … … 48 53 var width = element.clientHeight; 49 54 var height = element.clientHeight + 10; 50 adjustedNode = internals.touchNodeAdjustedToBestClickableNode(x, y, width, height, document); 51 if (adjustedNode.nodeType == 3) // TEXT node 52 adjustedNode = adjustedNode.parentNode; 55 adjustedNode = findBestClickableNode(x, y, width, height); 53 56 } 54 57 … … 60 63 var width = 10; 61 64 var height = 10; 62 adjustedNode = internals.touchNodeAdjustedToBestClickableNode(x, y, width, height, document); 63 if (adjustedNode.nodeType == 3) // TEXT node 64 adjustedNode = adjustedNode.parentNode; 65 adjustedNode = findBestClickableNode(x, y, width, height); 65 66 } 66 67 … … 152 153 153 154 <div id=test4 class=box onfocus='triggerInput()'> 154 <span tabindex=1> Focusing here should only give focus outline .155 <span tabindex=1> Focusing here should only give focus outline to this inner text. 155 156 </span> 156 157 </div> -
trunk/LayoutTests/touchadjustment/touch-inlines.html
r113193 r116777 54 54 55 55 adjustedNode = testRoundTouch(56, 60, 8) 56 should EvaluateTo('adjustedNode', 'null');56 shouldBeNull('adjustedNode'); 57 57 58 adjustedNode = testRoundTouch(20, 16 0, 4)59 should EvaluateTo('adjustedNode', 'null');58 adjustedNode = testRoundTouch(20, 166, 4) 59 shouldBeNull('adjustedNode'); 60 60 61 61 } … … 71 71 shouldBeEqualToString('adjustedNode.id', '3'); 72 72 73 adjustedNode = testRoundTouch(120, 6 0, 20)73 adjustedNode = testRoundTouch(120, 66, 30) 74 74 shouldBeEqualToString('adjustedNode.id', '4'); 75 75 … … 77 77 shouldBeEqualToString('adjustedNode.id', '4'); 78 78 79 adjustedNode = testRoundTouch(20, 1 65, 20)79 adjustedNode = testRoundTouch(20, 174, 30) 80 80 shouldBeEqualToString('adjustedNode.id', '6'); 81 81
Note: See TracChangeset
for help on using the changeset viewer.