Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Bjerring committed Aug 2, 2018
1 parent 8a117ad commit 0229a36
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions hr-time/idlharness.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,15 @@ function cast(i, t) {

idl_test(
['hr-time'],
[], // Deps handled below.
['html', 'dom'],
async idl_array => {
const [html, dom] = await Promise.all(['html', 'dom'].map(
i => fetch(`/interfaces/${i}.idl`).then(r => r.text())));

// NOTE(lukebjerring): Manually adding untested parent interfaces until
// https://github.com/web-platform-tests/wpt/issues/8053 is resolved.
if (self.GLOBAL.isWorker()) {
idl_array.add_untested_idls(html, { only: ['WorkerGlobalScope'] });
idl_array.add_objects({ WorkerGlobalScope: ['self'] });
} else {
idl_array.add_untested_idls(html, { only: ['Window'] });
idl_array.add_objects({ Window: ['self'] });
}
idl_array.add_objects({
Performance: ['performance'],
});

idl_array.add_dependency_idls(html);
idl_array.add_dependency_idls(dom);
},
'hr-time interfaces.');

0 comments on commit 0229a36

Please sign in to comment.