Skip to content

Commit

Permalink
Fix some IDL tests after html.idl includes SVGElement
Browse files Browse the repository at this point in the history
html.idl changed in upstream
#10110
and imported in
https://crrev.com/c/978021

Bug: 825191
Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a
  • Loading branch information
Hexcles authored and chromium-wpt-export-bot committed Mar 23, 2018
1 parent af184df commit 71f06fe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
3 changes: 1 addition & 2 deletions IndexedDB/interfaces.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ promise_test(async t => {
].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({
Expand Down
1 change: 1 addition & 0 deletions cookie-store/idlharness.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// 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 {};');
Expand Down
7 changes: 1 addition & 6 deletions hr-time/idlharness.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ <h1>High Resolution Time IDL tests</h1>

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"],
Expand Down
7 changes: 5 additions & 2 deletions webaudio/idlharness.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@

const idl_array = new IdlArray();


idl_array.add_untested_idls('interface LinkStyle {};'); // Dependency of HTML
// 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(dom);
idl_array.add_untested_idls(mediacapture);
idl_array.add_untested_idls('interface Worklet {};');

idl_array.add_idls(webaudio);

const sample_rate = 44100;
Expand Down

0 comments on commit 71f06fe

Please sign in to comment.