Changeset 66695 in webkit


Ignore:
Timestamp:
Sep 2, 2010 5:01:28 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-09-02 James Robinson <jamesr@chromium.org>

Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=37830

Fix an ordering issue in this test. The isSuccessfullyParsed
function is not defined until the onload event, so avoid running
the script body until this point.

  • fast/events/touch/script-tests/send-oncancel-event.js: (window.onload):
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r66694 r66695  
     12010-09-02  James Robinson  <jamesr@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4        https://bugs.webkit.org/show_bug.cgi?id=37830
     5
     6        Fix an ordering issue in this test.  The isSuccessfullyParsed
     7        function is not defined until the onload event, so avoid running
     8        the script body until this point.
     9
     10        * fast/events/touch/script-tests/send-oncancel-event.js:
     11        (window.onload):
     12
    1132010-09-02  Tony Chang  <tony@chromium.org>
    214
  • trunk/LayoutTests/fast/events/touch/script-tests/send-oncancel-event.js

    r58058 r66695  
    2121    window.layoutTestController.waitUntilDone();
    2222
    23 if (window.eventSender) {
    24     document.addEventListener("touchcancel", touchcancelHandler, false);
    25     eventSender.addTouchPoint(touchX, touchY);
    26     eventSender.touchStart();
    27     eventSender.cancelTouchPoint(0);
    28     eventSender.touchCancel();
    29 } else
    30     debug("This test requires DumpRenderTree.");
     23window.onload = function() {
     24    if (window.eventSender) {
     25        document.addEventListener("touchcancel", touchcancelHandler, false);
     26        eventSender.addTouchPoint(touchX, touchY);
     27        eventSender.touchStart();
     28        eventSender.cancelTouchPoint(0);
     29        eventSender.touchCancel();
     30    } else
     31        debug("This test requires DumpRenderTree.");
     32}
    3133
    3234var successfullyParsed = true;
Note: See TracChangeset for help on using the changeset viewer.