Bug 1735769 [wpt PR 31233] - Remove the `test_obj` parameter from the structured...
commit4b1a70b7870734452ed0eb41c4d177815232692e
authorAndreu Botella <abb@randomunok.com>
Thu, 28 Oct 2021 10:27:40 +0000 (28 10:27 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 29 Oct 2021 10:24:42 +0000 (29 10:24 +0000)
treed6b7fb054c6dcf6a3be9fb6a737200354c4099bd
parent1028b36fa774fd54d93a8579934ccac26b5d158c
Bug 1735769 [wpt PR 31233] - Remove the `test_obj` parameter from the structured clone tests, a=testonly

Automatic update from web-platform-tests
Remove the `test_obj` parameter from the structured clone tests

The `test_obj` parameter in the comparison functions of the structured
clone battery of tests doesn't seem to be used at all, considering that
the those functions only use it to call `test_obj.done()`, which is a
no-op. This seems to have once been used to indicate asynchronous test
completion, but that hasn't worked for a long time, and #31232 has now
made that obsolete.

Aside from removing the `test_obj` arguments to the comparison functions
and the calls to `test_obj.done()`, as well as the creation of the
`testObjMock` object in the `check` function, this change also removes
the `callback_is_async` boolean argument to `compare_Array` and
`compare_Object`.

--

wpt-commits: 8cc54d621755b2ea75f2391475a63934819e52df
wpt-pr: 31233
testing/web-platform/tests/html/webappapis/structured-clone/structured-clone-battery-of-tests.js