Bug 1598284 [wpt PR 20358] - Use spread syntax in WebIDL/current-realm.html., a=testonly
commita69355ee9ba0602e8533bd81e1c36dca6abbcb13
authorRaphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Tue, 26 Nov 2019 11:28:14 +0000 (26 11:28 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 29 Nov 2019 10:57:18 +0000 (29 10:57 +0000)
tree42b359102140252ec83812711c61ecd52cbfcdd6
parenta75fe2144e2af956740685f6811166f64141c492
Bug 1598284 [wpt PR 20358] - Use spread syntax in WebIDL/current-realm.html., a=testonly

Automatic update from web-platform-tests
Use spread syntax in WebIDL/current-realm.html. (#20358)

In [1], it is reported that Chrome is failing the test calling
`CanvasRenderingContext2D.createImageData()` with

    FAIL message: Failed to execute 'createImageData' on
    'CanvasRenderingContext2D': The provided value is not of type
    '(Uint8ClampedArray or Uint16Array or Float32Array)'

which happens because Chrome implements [2], which introduces a 4-argument
`createImageData()` overload. This overload ends up being used by the test
due to the following call:

    CanvasRenderingContext2D.createImageData(5, 5, undefined, undefined)

Avoid passing a constant number of arguments when we are testing multiple
calls that take a variable number of arguments by using the spread syntax
instead.

[1] https://wpt.fyi/results/WebIDL/current-realm.html?run_id=353010001&run_id=376180001&run_id=381940001&run_id=376170001
[2] https://github.com/WICG/canvas-color-space/
--

wpt-commits: 6ac023bb7f669cb9be340e1c184dfd4d4226e661
wpt-pr: 20358
testing/web-platform/tests/WebIDL/current-realm.html