Bug 1635751 [wpt PR 23416] - idlharness test fixups, a=testonly
authorStephen McGruer <smcgruer@chromium.org>
Wed, 13 May 2020 09:43:23 +0000
changeset 531099 a344e0bcc47acad96f324865d2f1e5db0e7349c7
parent 531098 4217dfe8eb4a5eb5d32bbefa06fbb716749e8318
child 531100 c2cb192ef1d35f46de2b88a6d66cb121e6946389
push id37435
push userapavel@mozilla.com
push dateWed, 20 May 2020 15:28:23 +0000
treeherdermozilla-central@5415da14ec9a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1635751, 23416, 23397
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1635751 [wpt PR 23416] - idlharness test fixups, a=testonly Automatic update from web-platform-tests idlharness test fixups (#23416) Follow-ups from https://github.com/web-platform-tests/wpt/pull/23397#issuecomment-624203679 Co-authored-by: Domenic Denicola <d@domenic.me> -- wpt-commits: 00faab86269717c8555d6539c103dd7ed0fff147 wpt-pr: 23416
testing/web-platform/tests/FileAPI/idlharness.html
testing/web-platform/tests/FileAPI/idlharness.worker.js
testing/web-platform/tests/interfaces/trusted-types.tentative.idl
testing/web-platform/tests/wasm/jsapi/idlharness.any.js
--- a/testing/web-platform/tests/FileAPI/idlharness.html
+++ b/testing/web-platform/tests/FileAPI/idlharness.html
@@ -21,19 +21,16 @@
 
     <script>
       'use strict';
 
       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")'],
             FileList: ['document.querySelector("#fileChooser").files'],
             FileReader: ['new FileReader()']
           });
         }
       );
--- a/testing/web-platform/tests/FileAPI/idlharness.worker.js
+++ b/testing/web-platform/tests/FileAPI/idlharness.worker.js
@@ -4,17 +4,16 @@ importScripts("/resources/WebIDLParser.j
 '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()']
     });
   }
 );
--- a/testing/web-platform/tests/interfaces/trusted-types.tentative.idl
+++ b/testing/web-platform/tests/interfaces/trusted-types.tentative.idl
@@ -24,17 +24,17 @@ typedef [StringContext=TrustedScriptURL]
 ] interface TrustedScriptURL {
     stringifier;
 };
 
 [
   Exposed=(Window, Worker),
   SecureContext
 ] interface TrustedTypePolicyFactory {
-    TrustedTypePolicy createPolicy(DOMString policyName, TrustedTypePolicyOptions policyOptions);
+    TrustedTypePolicy createPolicy(DOMString policyName, optional TrustedTypePolicyOptions policyOptions = {});
     // All the policy object names that have been created
 };
 
 [
   Exposed=(Window, Worker),
   SecureContext
 ] interface TrustedTypePolicy {
     readonly attribute DOMString name;
--- a/testing/web-platform/tests/wasm/jsapi/idlharness.any.js
+++ b/testing/web-platform/tests/wasm/jsapi/idlharness.any.js
@@ -12,19 +12,16 @@ promise_test(async () => {
     srcs.map(i => fetch(`/interfaces/${i}.idl`).then(r => r.text())));
 
   const idl_array = new IdlArray();
   idl_array.add_idls(wasm, {
     // Note the prose requirements in the specification.
     except: ['CompileError', 'LinkError', 'RuntimeError']
   });
 
-  // https://github.com/web-platform-tests/wpt/issues/12850
-  idl_array.add_untested_idls('[Exposed=(Window,Worker)] interface ArrayBuffer {};');
-
   // Ignored errors are surfaced in idlharness.js's test_object below.
   try {
     self.memory = new WebAssembly.Memory({initial: 1024});
   } catch (e) { }
 
   try {
     self.mod = await createWasmModule();
     self.instance = new WebAssembly.Instance(self.mod);