Update web-platform-tests to revision 82b73b315ce7ed1554e7a9b7bced66a5831e4ee5

This commit is contained in:
WPT Sync Bot 2019-08-19 10:23:52 +00:00
parent 00a9f30773
commit 76712d7d25
353 changed files with 6528 additions and 1307 deletions

View file

@ -0,0 +1,42 @@
/**
* AUTO-GENERATED - DO NOT EDIT. Source: https://github.com/gpuweb/cts
**/
import { TestLoader } from '../framework/loader.js';
import { Logger } from '../framework/logger.js';
import { makeQueryString } from '../framework/url_query.js';
(async () => {
const loader = new TestLoader();
const files = await loader.loadTestsFromQuery(window.location.search);
const log = new Logger();
const running = [];
for (const f of files) {
if (!('g' in f.spec)) {
continue;
}
const [rec] = log.record(f.id); // TODO: don't run all tests all at once
for (const t of f.spec.g.iterate(rec)) {
const run = t.run();
running.push(run); // Note: apparently, async_tests must ALL be added within the same task.
async_test(async function () {
const r = await run;
this.step(() => {
if (r.status === 'fail') {
throw (r.logs || []).join('\n');
}
});
this.done();
}, makeQueryString(f.id, t.id));
}
}
await Promise.all(running);
const resultsElem = document.getElementById('results');
resultsElem.textContent = log.asJSON(2);
})();
//# sourceMappingURL=wpt.js.map