Skip to content

Implement document.createEvent("TouchEvent") #8160

Closed

Description

@mbrubeck

This is a follow-up to issue #7204.

In the Document::CreateEvent method, add a case for "touchevent" that creates and returns a new TouchEvent.

The TouchEvent constructor takes three TouchList arguments. You can create an empty TouchList by calling TouchList::new with an empty array, then pass this TouchList to the TouchEvent constructor.

After this change, the following tests should pass. You can git rm the metadata files marking them as failing: Document-createEvent.html.ini and EventTarget-dispatchEvent.html.ini. Then run these commands to verify that both tests pass:

./mach test tests/wpt/web-platform-tests/dom/nodes/Document-createEvent.html
./mach test tests/wpt/web-platform-tests/dom/events/EventTarget-dispatchEvent.html

Activity

  1. added
    A-content/dom
    E-less-complex
    I-enhancement
    on Oct 22, 2015
  2. ax3lst commented on Oct 23, 2015

    @ax3lst
    Contributor

    I can do this one

  3. added
    C-assigned
    on Oct 23, 2015
  4. added a commit that references this issue on Oct 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/domC-assignedE-less-complexI-enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions