Changeset 53140 in webkit


Ignore:
Timestamp:
Jan 12, 2010 6:37:19 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-12 Petri Latvala <petri.latvala@nomovok.com>

Reviewed by Antti Koivisto.

fast/events/touch-coords-in-zoom-and-scroll-pretty-diff.html failed on buildbot
https://bugs.webkit.org/show_bug.cgi?id=33465

A touchmove event is not dispatched if none of the touch points actually moved.
Changed the test to use touchstart instead.

  • fast/events/touch/touch-coords-in-zoom-and-scroll.html:
  • platform/qt/Skipped:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r53137 r53140  
     12010-01-12  Petri Latvala  <petri.latvala@nomovok.com>
     2
     3        Reviewed by Antti Koivisto.
     4
     5        fast/events/touch-coords-in-zoom-and-scroll-pretty-diff.html failed on buildbot
     6        https://bugs.webkit.org/show_bug.cgi?id=33465
     7
     8        A touchmove event is not dispatched if none of the touch points actually moved.
     9        Changed the test to use touchstart instead.
     10
     11        * fast/events/touch/touch-coords-in-zoom-and-scroll.html:
     12        * platform/qt/Skipped:
     13
    1142010-01-12  Eric Seidel  <eric@webkit.org>
    215
  • trunk/LayoutTests/fast/events/touch/touch-coords-in-zoom-and-scroll.html

    r53136 r53140  
    1616    var event;
    1717
    18     function sendTouchMove()
     18    function sendTouchStart(x, y)
    1919    {
    2020        if (window.eventSender) {
    21             eventSender.touchMove();
     21            eventSender.clearTouchPoints();
     22            eventSender.addTouchPoint(x, y);
     23            eventSender.touchStart();
    2224        }
    2325    }
     
    5860    }
    5961
    60     window.addEventListener("touchmove", base, false);
    61 
    62     if (window.eventSender) {
    63         eventSender.addTouchPoint(100, 100);
    64         eventSender.touchStart();
    65     }
     62    window.addEventListener("touchstart", base, false);
    6663   
    67     sendTouchMove();
    68     window.removeEventListener("touchmove", base, false);
     64    sendTouchStart(100, 100);
     65    window.removeEventListener("touchstart", base, false);
    6966   
    7067    // Just zoomed.
     
    7875        shouldBe("event.touches[0].pageY", "83");
    7976    }
    80     window.addEventListener("touchmove", justZoomed, false);
     77    window.addEventListener("touchstart", justZoomed, false);
    8178    zoomPageIn();
    82     sendTouchMove();
     79    sendTouchStart(100, 100);
    8380    zoomPageOut();
    84     window.removeEventListener("touchmove", justZoomed, false);
     81    window.removeEventListener("touchstart", justZoomed, false);
    8582
    8683    // Just scrolled.
     
    9491        shouldBe("event.touches[0].pageY", "150");
    9592    }
    96     window.addEventListener("touchmove", justScrolled, false);
     93    window.addEventListener("touchstart", justScrolled, false);
    9794    scrollPage(50, 50);
    98     sendTouchMove();
     95    sendTouchStart(100, 100);
    9996    scrollPage(0, 0);
    100     window.removeEventListener("touchmove", justScrolled, false);
     97    window.removeEventListener("touchstart", justScrolled, false);
    10198
    10299    // Zoomed and scrolled.
     
    110107        shouldBe("event.touches[0].pageY", "133");
    111108    }
    112     window.addEventListener("touchmove", zoomedAndScrolled, false);
     109    window.addEventListener("touchstart", zoomedAndScrolled, false);
    113110    zoomPageIn();
    114111    scrollPage(50, 50);
    115     sendTouchMove();
     112    sendTouchStart(100, 100);
    116113    zoomPageOut();
    117114    scrollPage(0, 0);
    118     window.removeEventListener("touchmove", zoomedAndScrolled, false);
     115    window.removeEventListener("touchstart", zoomedAndScrolled, false);
    119116
    120117    if (window.eventSender) {
  • trunk/LayoutTests/platform/qt/Skipped

    r53125 r53140  
    50905090fast/forms/slider-zoomed.html
    50915091fast/forms/slider-mouse-events.html
    5092 
    5093 # https://bugs.webkit.org/show_bug.cgi?id=33465
    5094 fast/events/touch/touch-coords-in-zoom-and-scroll.html
Note: See TracChangeset for help on using the changeset viewer.