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

@ -6,19 +6,27 @@
'use strict';
promise_test(async () => {
const idl_array = new IdlArray();
const idl = await fetch("/interfaces/user-timing.idl").then(r => r.text());
const hrtime = await fetch("/interfaces/hr-time.idl").then(r => r.text());
const perf = await fetch("/interfaces/performance-timeline.idl").then(r => r.text());
const dom = await fetch("/interfaces/dom.idl").then(r => r.text());
idl_test(
['user-timing'],
['hr-time', 'performance-timeline', 'dom'],
idl_array => {
try {
performance.mark('test');
performance.measure('test');
for (const m of performance.getEntriesByType('mark')) {
self.mark = m;
}
for (const m of performance.getEntriesByType('measure')) {
self.measure = m;
}
} catch (e) {
// Will be surfaced when mark is undefined below.
}
idl_array.add_idls(idl);
idl_array.add_dependency_idls(hrtime);
idl_array.add_dependency_idls(perf);
idl_array.add_dependency_idls(dom);
idl_array.add_objects({
Performance: ["performance"]
});
idl_array.test();
}, "Test IDL implementation of user-timing API");
idl_array.add_objects({
Performance: ['performance'],
PerformanceMark: ['mark'],
PerformanceMeasure: ['measure'],
});
},
'Test IDL implementation of user-timing API');