Bug 1666542 [wpt PR 25675] - sensors: Clean the iframe tests up some more., a=testonly
commitb950867f653ee092d998c7ef8edee1a9ccae6bd6
authorRaphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Thu, 24 Sep 2020 19:11:21 +0000 (24 19:11 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 25 Sep 2020 19:29:29 +0000 (25 19:29 +0000)
treefccee59f00c5aaa52b6e99e0304389f77c7018f0
parent59b0f135251d5797ddd379586749a6e4870efc20
Bug 1666542 [wpt PR 25675] - sensors: Clean the iframe tests up some more., a=testonly

Automatic update from web-platform-tests
sensors: Clean the iframe tests up some more.

The Mac bots are occasionally timing out. Clean up the iframe tests a bit
more hoping it helps:
* Remove redundant call to 'reset_sensor_backend' that is already performed
  by the test's cleanup function.
* Move the message handler to a separate function, so that we can then call
  it from a catch-all try/catch statement and ensure we will always send a
  reply. This also allows us to remove several try/catch blocks from the
  handler itself.

Bug: 1073865
Change-Id: I9756c85ee401a78dabe5f283250ab68110decabb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2424248
Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809638}

--

wpt-commits: 281f62f2d8ffe72128d848851ac1e8d823f608f6
wpt-pr: 25675
testing/web-platform/tests/generic-sensor/generic-sensor-iframe-tests.sub.js
testing/web-platform/tests/generic-sensor/resources/iframe_sensor_handler.html