Update web-platform-tests to revision abd18b3e018d25ed668d179c905b7869dca5e239

This commit is contained in:
WPT Sync Bot 2018-07-19 21:07:28 -04:00
parent 908a642063
commit 158f7eec0e
117 changed files with 2997 additions and 434 deletions

View file

@ -0,0 +1,28 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
// https://w3c.github.io/paint-timing/
idl_test(
['paint-timing'],
['performance-timeline'],
(idl_array, t) => {
idl_array.add_objects({
PerformancePaintTiming: ['paintTiming'],
});
const awaitPaint = new Promise(resolve => {
let observer = new PerformanceObserver(list => {
self.paintTiming = list.getEntries()[0];
resolve();
});
observer.observe({ entryTypes: ['paint'] });
});
const timeout = new Promise((_, reject) => {
t.step_timeout(() => reject('Timed out waiting for paint event'), 3000);
});
return Promise.race([awaitPaint, timeout]);
},
'paint-timing interfaces.');