Update web-platform-tests to revision 3f9178031eec5374c9a7d5709a7e11ba4a1955ed

This commit is contained in:
WPT Sync Bot 2018-07-22 21:05:03 -04:00
parent 4997ec26c2
commit a5af9a106a
192 changed files with 3943 additions and 1927 deletions

View file

@ -5,21 +5,16 @@
'use strict';
promise_test(async () => {
const srcs = ['touch-events', 'uievents', 'dom', 'html'];
const [idl, uievents, dom, html] = await Promise.all(
srcs.map(i => fetch(`/interfaces/${i}.idl`).then(r => r.text())));
const idl_array = new IdlArray();
idl_array.add_idls(idl);
idl_array.add_dependency_idls(uievents);
idl_array.add_dependency_idls(dom);
idl_array.add_dependency_idls(html);
idl_array.add_objects({
Document: ['document'],
GlobalEventHandlers: ['window', 'document', 'document.body'],
Touch: ['new Touch({identifier: 1, target: document})'],
TouchEvent: ['new TouchEvent("name")'],
});
idl_array.test();
}, 'Test IDL implementation of touch-events API');
idl_test(
['touch-events'],
['uievents', 'dom', 'html'],
idl_array => {
idl_array.add_objects({
Document: ['document'],
GlobalEventHandlers: ['window', 'document', 'document.body'],
Touch: ['new Touch({identifier: 1, target: document})'],
TouchEvent: ['new TouchEvent("name")'],
});
},
'Test IDL implementation of touch-events API'
);