Commit 5f614471 authored by Robert Ma's avatar Robert Ma Committed by Commit Bot

Fix 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: default avatarJoshua Bell <jsbell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#545588}
parent c1b2fa29
This is a testharness.js-based test.
FAIL Test driver promise_test: Unhandled rejection with value: "SVGElement includes HTMLOrSVGElement, but SVGElement is undefined."
Harness: the test ran to completion.
...@@ -9,8 +9,7 @@ promise_test(async t => { ...@@ -9,8 +9,7 @@ promise_test(async t => {
].map(url => fetch(url).then(response => response.text()))); ].map(url => fetch(url).then(response => response.text())));
const idl_array = new IdlArray(); const idl_array = new IdlArray();
idl_array.add_untested_idls('interface LinkStyle {};'); // Needed by html idl_array.add_untested_idls(html, { only: ['WindowOrWorkerGlobalScope'] });
idl_array.add_untested_idls(html);
idl_array.add_untested_idls(dom); idl_array.add_untested_idls(dom);
idl_array.add_idls(indexeddb); idl_array.add_idls(indexeddb);
idl_array.add_objects({ idl_array.add_objects({
......
This is a testharness.js-based test.
FAIL Test driver promise_test: Unhandled rejection with value: "SVGElement includes HTMLOrSVGElement, but SVGElement is undefined."
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Interface test promise_test: Unhandled rejection with value: "SVGElement includes HTMLOrSVGElement, but SVGElement is undefined."
Harness: the test ran to completion.
...@@ -19,6 +19,7 @@ promise_test(async t => { ...@@ -19,6 +19,7 @@ promise_test(async t => {
// Dependencies of HTML // Dependencies of HTML
idl_array.add_untested_idls('interface Document {};'); idl_array.add_untested_idls('interface Document {};');
idl_array.add_untested_idls('interface LinkStyle {};'); 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(html);
idl_array.add_untested_idls('interface Event {};'); idl_array.add_untested_idls('interface Event {};');
......
This is a testharness.js-based test. This is a testharness.js-based test.
FAIL Test driver promise_test: Unhandled rejection with value: "SVGElement includes HTMLOrSVGElement, but SVGElement is undefined." FAIL Test driver promise_test: Unhandled rejection with value: object "Error: undefined EventTarget not found (inherited by Performance)"
FAIL Performance interface: existence and properties of interface object Cannot read property 'has_extended_attribute' of undefined
PASS Performance interface object length
PASS Performance interface object name
FAIL Performance interface: existence and properties of interface prototype object Cannot read property 'has_extended_attribute' of undefined
PASS Performance interface: existence and properties of interface prototype object's "constructor" property
PASS Performance interface: existence and properties of interface prototype object's @@unscopables property
PASS Performance interface: operation now()
PASS Unscopable handled correctly for now() on Performance
PASS Performance interface: attribute timeOrigin
PASS Unscopable handled correctly for timeOrigin property on Performance
PASS Performance interface: operation toJSON()
PASS Unscopable handled correctly for toJSON() on Performance
PASS Performance must be primary interface of window.performance
FAIL Stringification of window.performance Cannot read property 'has_stringifier' of undefined
PASS Performance interface: window.performance must inherit property "now()" with the proper type
PASS Performance interface: window.performance must inherit property "timeOrigin" with the proper type
PASS Performance interface: window.performance must inherit property "toJSON()" with the proper type
Harness: the test ran to completion. Harness: the test ran to completion.
...@@ -18,12 +18,7 @@ ...@@ -18,12 +18,7 @@
function doTest([html, hr_time]) { function doTest([html, hr_time]) {
var idl_array = new IdlArray(); var idl_array = new IdlArray();
// HTML is needed for WindowOrWorkerGlobalScope. Provide dummy interfaces for idl_array.add_untested_idls(html, { only: ['WindowOrWorkerGlobalScope'] });
// 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_idls(hr_time); idl_array.add_idls(hr_time);
idl_array.add_objects({ idl_array.add_objects({
Performance: ["window.performance"], Performance: ["window.performance"],
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -25,12 +25,15 @@ promise_test(async t => { ...@@ -25,12 +25,15 @@ promise_test(async t => {
const idl_array = new IdlArray(); const idl_array = new IdlArray();
// Dependencies of HTML
idl_array.add_untested_idls('interface LinkStyle {};'); // Dependency 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(html);
idl_array.add_untested_idls(dom); idl_array.add_untested_idls(dom);
idl_array.add_untested_idls(mediacapture); idl_array.add_untested_idls(mediacapture);
idl_array.add_untested_idls('interface Worklet {};'); idl_array.add_untested_idls('interface Worklet {};');
idl_array.add_idls(webaudio); idl_array.add_idls(webaudio);
const sample_rate = 44100; const sample_rate = 44100;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment