Bug 1448493 [wpt PR 10163] - Fix some IDL tests after html.idl includes SVGElement, a=testonly
authorRobert Ma <robertma@chromium.org>
Mon, 09 Apr 2018 18:09:18 +0000
changeset 413587 dfa12b7487ef92a3edf36c7bfc823f651b1c9b77
parent 413586 976c3fd1612d00fe8c7ac0cc6a70d00337236572
child 413588 da41b05b899f09b9db9c9515be5af1960f177a9b
push id102161
push userjames@hoppipolla.co.uk
push dateSun, 15 Apr 2018 09:10:16 +0000
treeherdermozilla-inbound@ebfad4be630d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1448493, 10163, 10110, 978021, 825191, 978508, 545588
milestone61.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 1448493 [wpt PR 10163] - Fix some IDL tests after html.idl includes SVGElement, a=testonly Automatic update from web-platform-testsFix some IDL tests after html.idl includes SVGElement html.idl changed in upstream https://github.com/w3c/web-platform-tests/pull/10110 and imported in https://crrev.com/c/978021 Bug: 825191 Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a Reviewed-on: https://chromium-review.googlesource.com/978508 Commit-Queue: Robert Ma <robertma@chromium.org> Reviewed-by: Joshua Bell <jsbell@chromium.org> Cr-Commit-Position: refs/heads/master@{#545588} wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939 wpt-pr: 10163 wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939 wpt-pr: 10163
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/IndexedDB/interfaces.any.js
testing/web-platform/tests/cookie-store/idlharness.tentative.html
testing/web-platform/tests/hr-time/idlharness.html
testing/web-platform/tests/webaudio/idlharness.https.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -397416,17 +397416,17 @@
    "03e244d70d286d726bf0a227bc36ef1b4d8bcc72",
    "support"
   ],
   "IndexedDB/index_sort_order.htm": [
    "251a828d333bdd3face9d20a2a28ddf0c0ffeb49",
    "testharness"
   ],
   "IndexedDB/interfaces.any.js": [
-   "df07f5da63c34969a24fe43bc4268418ab0a5132",
+   "ae562d6b568c1005c5eef5a230b8869729719dff",
    "testharness"
   ],
   "IndexedDB/interleaved-cursors-common.js": [
    "6744105fe1a15a91058e3e5993f8a1f88548e3a3",
    "support"
   ],
   "IndexedDB/interleaved-cursors-large.html": [
    "4ee13538a407fe15fe310c8776d84c7526b7b363",
@@ -422960,17 +422960,17 @@
    "42c03466979c5e6d94803d5e69b6c07a595e9728",
    "testharness"
   ],
   "cookie-store/http_cookie_and_set_cookie_headers.tentative.https.html": [
    "11c763dd1b7b3a1bff14b9f65538fb33ca97b81b",
    "testharness"
   ],
   "cookie-store/idlharness.tentative.html": [
-   "24a4e59e8d3c0a481c4b448bd3fb677f30d0208f",
+   "8654087597cc0c11b880b0144897dab26691d12a",
    "testharness"
   ],
   "cookie-store/idlharness_serviceworker.js": [
    "aceb00f593b0447853fa70c8c971902cf02a164b",
    "support"
   ],
   "cookie-store/idlharness_serviceworker.tentative.https.html": [
    "0c8a1302ab1839cab71c87db2bda1ca6abcb6a23",
@@ -553064,17 +553064,17 @@
    "b82f9756b15ef3ea45fb250e304031d9ceaee9c7",
    "support"
   ],
   "hr-time/basic.any.js": [
    "5c727eed4efd84b4b280b2584b7338217971a9e7",
    "testharness"
   ],
   "hr-time/idlharness.html": [
-   "f2cdcba041df089206cc9c811167c41a771905df",
+   "579176cad14656ca5cdc616dd1323dc38a5b62ba",
    "testharness"
   ],
   "hr-time/monotonic-clock.any.js": [
    "4aef47650d5cbc750393c3ac9423dbff24a15917",
    "testharness"
   ],
   "hr-time/performance-tojson.html": [
    "2d45889944dab7b0489a03a649a70e1177bca428",
@@ -601988,17 +601988,17 @@
    "230684ec60fd2e408f9b6014417f3eddfe2dc95a",
    "support"
   ],
   "webaudio/historical.html": [
    "93068df297042344669093ce899f0230c87ebf54",
    "testharness"
   ],
   "webaudio/idlharness.https.html": [
-   "7876e16ea643f69315e18c3e17af0d7f95769420",
+   "f42681173fdf4cb8dad2049351f55f3a7ff0fcac",
    "testharness"
   ],
   "webaudio/js/buffer-loader.js": [
    "4d564eae0b3d7d1045626d1f144cd2638dba64e5",
    "support"
   ],
   "webaudio/js/helpers.js": [
    "3cb468605c1fa8e5005bc8552b15f7a37ee9b935",
--- a/testing/web-platform/tests/IndexedDB/interfaces.any.js
+++ b/testing/web-platform/tests/IndexedDB/interfaces.any.js
@@ -4,18 +4,17 @@
 promise_test(async t => {
   const [html, dom, indexeddb] = await Promise.all([
     '/interfaces/html.idl',
     '/interfaces/dom.idl',
     '/interfaces/IndexedDB.idl',
   ].map(url => fetch(url).then(response => response.text())));
 
   const idl_array = new IdlArray();
-  idl_array.add_untested_idls('interface LinkStyle {};');  // Needed by html
-  idl_array.add_untested_idls(html);
+  idl_array.add_untested_idls(html, { only: ['WindowOrWorkerGlobalScope'] });
   idl_array.add_untested_idls(dom);
   idl_array.add_idls(indexeddb);
   idl_array.add_objects({
     IDBCursor: [],
     IDBCursorWithValue: [],
     IDBDatabase: [],
     IDBFactory: [self.indexedDB],
     IDBIndex: [],
--- a/testing/web-platform/tests/cookie-store/idlharness.tentative.html
+++ b/testing/web-platform/tests/cookie-store/idlharness.tentative.html
@@ -14,16 +14,17 @@ promise_test(async t => {
   const [html, cookie_store] = await Promise.all(
     urls.map(url => fetch(url).then(response => response.text())));
 
   const idl_array = new IdlArray();
 
   // Dependencies of HTML
   idl_array.add_untested_idls('interface Document {};');
   idl_array.add_untested_idls('interface LinkStyle {};');
+  idl_array.add_untested_idls('interface SVGElement {};');
   idl_array.add_untested_idls(html);
 
   idl_array.add_untested_idls('interface Event {};');
   idl_array.add_untested_idls('dictionary EventInit {};');
   idl_array.add_untested_idls('interface EventTarget {};');
   idl_array.add_untested_idls(
     `[Global=ServiceWorker, Exposed=ServiceWorker]
      interface ServiceWorkerGlobalScope {};`);
--- a/testing/web-platform/tests/hr-time/idlharness.html
+++ b/testing/web-platform/tests/hr-time/idlharness.html
@@ -13,22 +13,17 @@
 <body>
 <h1>High Resolution Time IDL tests</h1>
 <div id="log"></div>
 <script>
 'use strict';
 
 function doTest([html, hr_time]) {
   var idl_array = new IdlArray();
-  // HTML is needed for WindowOrWorkerGlobalScope. Provide dummy interfaces for
-  // things that HTML depends on in turn which are not under tests.
-  idl_array.add_untested_idls('interface Document {};');
-  idl_array.add_untested_idls('interface EventTarget {};');
-  idl_array.add_untested_idls('interface LinkStyle {};');
-  idl_array.add_untested_idls(html);
+  idl_array.add_untested_idls(html, { only: ['WindowOrWorkerGlobalScope'] });
   idl_array.add_idls(hr_time);
   idl_array.add_objects({
     Performance: ["window.performance"],
     Window: ["window"],
   });
   idl_array.test();
 }
 
--- a/testing/web-platform/tests/webaudio/idlharness.https.html
+++ b/testing/web-platform/tests/webaudio/idlharness.https.html
@@ -20,22 +20,25 @@ promise_test(async t => {
     // Needed for MediaStream, MediaStreamTrack
     '/interfaces/mediacapture-main.idl',
 
     '/interfaces/webaudio.idl'
   ].map(url => fetch(url).then(response => response.text())));
 
   const idl_array = new IdlArray();
 
+  // Dependencies of HTML
+  idl_array.add_untested_idls('interface LinkStyle {};');
+  idl_array.add_untested_idls('interface SVGElement {};');
+  idl_array.add_untested_idls(html);
 
-  idl_array.add_untested_idls('interface LinkStyle {};'); // Dependency of HTML
-  idl_array.add_untested_idls(html);
   idl_array.add_untested_idls(dom);
   idl_array.add_untested_idls(mediacapture);
   idl_array.add_untested_idls('interface Worklet {};');
+
   idl_array.add_idls(webaudio);
 
   const sample_rate = 44100;
   const context = new AudioContext;
   const buffer = new AudioBuffer({length: 1, sampleRate: sample_rate});
   await context.audioWorklet.addModule(
     'the-audio-api/the-audioworklet-interface/processors/dummy-processor.js');
   const worklet_node = new AudioWorkletNode(context, 'dummy');