fune/testing/web-platform/tests/touch-events/idlharness.window.js
Dave Tapuska 4c20f4b8a7 Bug 1623688 [wpt PR 22337] - Fix failing touch-event tests., a=testonly
Automatic update from web-platform-tests
Fix failing touch-event tests.

The idl tests were failing because the definition order was wrong.

Change-Id: Iac210d6c0b211c49a78749c8dfd2a94be76c9a45
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2110078
Reviewed-by: Navid Zolghadr <nzolghadr@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#751779}

--

wpt-commits: d154c9ec965214293d679640834e70ec2fd915dc
wpt-pr: 22337
2020-03-21 00:32:43 +00:00

19 lines
468 B
JavaScript

// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// https://w3c.github.io/touch-events/
'use strict';
idl_test(
['touch-events'],
['uievents', 'html', 'dom'],
idl_array => {
idl_array.add_objects({
Document: ['document'],
GlobalEventHandlers: ['window', 'document', 'document.body'],
Touch: ['new Touch({identifier: 1, target: document})'],
TouchEvent: ['new TouchEvent("name")'],
});
}
);