https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d9f55b34b619b49c5ecd9fd0802342b0d352b564 authored by Sam Goto on 15 December 2018, 00:47:49 UTC
MojoInterfaceInterceptor tests for the IdleManager.
Tip revision: d9f55b3
idlharness.window.js
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

// http://www.w3.org/TR/webstorage/#storage

idl_test(
  [], [], // Srcs + deps manually handled below.
  async idl_array => {
    const [html, dom] = await Promise.all(['html', 'dom']
        .map(i => fetch(`/interfaces/${i}.idl`).then(r => r.text())));
    idl_array.add_idls(html, {
      only: [
        'Storage',
        'WindowSessionStorage',
        'WindowLocalStorage',
        'StorageEvent',
        'StorageEventInit',
      ]});
    idl_array.add_dependency_idls(dom);

    idl_array.add_objects({
      Storage: [
        'localStorage',
        'sessionStorage',
      ],
      StorageEvent: ['new StorageEvent("storage")']
    });
  }
);
back to top