Changeset 141520 in webkit
- Timestamp:
- Jan 31, 2013 6:41:27 PM (11 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r141519 r141520 1 2013-01-31 Hayato Ito <hayato@chromium.org> 2 3 Use TouchEvent.targetTouches rather than TouchEvent.touches since the order of Touches in TouchList is not guaranteed. 4 https://bugs.webkit.org/show_bug.cgi?id=108426 5 6 Reviewed by Dimitri Glazkov. 7 8 Neat fix for LayoutTest in http://trac.webkit.org/changeset/141054. 9 10 In this LayoutTest context, the length of touchEvent.touches is 2. 11 The Touch order in TouchList is not guaranteed. Therefore 12 touchEvent.touches[0] can be another touch. Rather, we should use 13 touchEvent.targetTouches here since its length is 1 in this context. 14 15 * fast/dom/shadow/touch-event.html: 16 1 17 2013-01-31 Rouslan Solomakhin <rouslan@chromium.org> 2 18 -
trunk/LayoutTests/fast/dom/shadow/touch-event.html
r141054 r141520 24 24 var touchTargetsForHost1; 25 25 host1.addEventListener('touchstart', function(e) { 26 touchTargetForHost1 = e.t ouches[0].target;26 touchTargetForHost1 = e.targetTouches[0].target; 27 27 }); 28 28 … … 34 34 var touchTargetForInput1; 35 35 input1.addEventListener('touchstart', function(e) { 36 touchTargetForInput1 = e.t ouches[1].target;36 touchTargetForInput1 = e.targetTouches[0].target; 37 37 }); 38 38
Note: See TracChangeset
for help on using the changeset viewer.