https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 497c31799d9d2a643acc8c000f6d54e00ce56950 authored by Geoffrey Sneddon on 07 November 2018, 13:23:33 UTC
Update tools/wptrunner/wptrunner/formatters.py
Tip revision: 497c317
idlharness.worker.js
importScripts("/resources/testharness.js");
importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js");

'use strict';

// https://w3c.github.io/FileAPI/

idl_test(
  ['FileAPI'],
  ['dom', 'html', 'url'],
  idl_array => {
    idl_array.add_untested_idls("[Exposed=(Window,Worker)] interface ArrayBuffer {};");
    idl_array.add_objects({
      Blob: ['new Blob(["TEST"])'],
      File: ['new File(["myFileBits"], "myFileName")'],
      FileReader: ['new FileReader()'],
      FileReaderSync: ['new FileReaderSync()']
    });
  }
);
done();
back to top