Revision eb9f8a917a751b5bd2e4ed86840eac8b5c4445f2 authored by Brian Birtles on 15 March 2018, 06:57:09 UTC, committed by Brian Birtles on 15 March 2018, 06:57:09 UTC
This patch also drops the test that an AnimationEffectTiming object is created in the appropriate realm since it is no longer the case that a separate timing object is created.
1 parent df2153f
idlharness_serviceworker.js
self.GLOBAL = {
isWindow: function() { return false; },
isWorker: function() { return true; },
};
importScripts('/resources/testharness.js',
'/resources/WebIDLParser.js',
'/resources/idlharness.js');
promise_test(async t => {
const urls = ['/interfaces/cookie-store.idl'];
const [cookie_store] = await Promise.all(
urls.map(url => fetch(url).then(response => response.text())));
const idl_array = new IdlArray();
idl_array.add_untested_idls(
`[Global=ServiceWorker, Exposed=ServiceWorker]
interface ServiceWorkerGlobalScope {};`);
idl_array.add_untested_idls(
`[Global=Window, Exposed=Window]
interface Window {};`);
idl_array.add_idls(cookie_store);
idl_array.add_objects({
CookieStore: [self.cookieStore],
});
idl_array.test();
}, 'Interface test');
done();
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...