Closed Bug 1604442 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 20808 - Use [RaisesException] for immediate promise rejections in bluetooth

Categories

(Core :: DOM: Device Interfaces, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 20808 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/20808
Details from upstream follow.

Julie Jeongeun Kim <jkim@igalia.com> wrote:

Use [RaisesException] for immediate promise rejections in bluetooth

This is a part of effort for using [RaisesException] when synchronously
rejecting a promise.

It uses [RaisesException] for
//third_party/blink/renderer/modules/bluetooth.

Bug: 1001114
Change-Id: Iddb31cbbf71637ae989ea634f78207dfd9289c43
Reviewed-on: https://chromium-review.googlesource.com/1971049
WPT-Export-Revision: 4aa69539ed135c93cba9de9532d7d33decc9a041

Component: web-platform-tests → DOM: Device Interfaces
Product: Testing → Core

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 10 tests and 1 subtests

Status Summary

Firefox

OK : 10
FAIL: 10

Chrome

OK : 10
FAIL: 10

Safari

OK : 10
FAIL: 10

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/bluetooth/server/getPrimaryServices/gen-disconnect-called-before.https.window.html
disconnect() called before getPrimaryServices. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryService/gen-disconnect-invalidates-objects.https.window.html
Calls on services after we disconnect and connect again. Should reject with InvalidStateError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/requestDevice/not-processing-user-gesture.https.html
Requires a user gesture.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnected-device-with-uuid.https.window.html
getPrimaryServices called before connecting. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryService/gen-disconnected-device.https.window.html
getPrimaryService called before connecting. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnect-called-before-with-uuid.https.window.html
disconnect() called before getPrimaryServices. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnect-invalidates-objects.https.window.html
Calls on services after we disconnect and connect again. Should reject with InvalidStateError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnected-device.https.window.html
getPrimaryServices called before connecting. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryService/gen-disconnect-called-before.https.window.html
disconnect() called before getPrimaryService. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnect-invalidates-objects-with-uuid.https.window.html
Calls on services after we disconnect and connect again. Should reject with InvalidStateError.: FAIL (Chrome: FAIL, Safari: FAIL)

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 10 tests and 1 subtests

Status Summary

Firefox

OK : 10
FAIL: 10

Chrome

OK : 10
FAIL: 10

Safari

OK : 10
FAIL: 10

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/bluetooth/server/getPrimaryServices/gen-disconnect-called-before.https.window.html
disconnect() called before getPrimaryServices. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryService/gen-disconnect-invalidates-objects.https.window.html
Calls on services after we disconnect and connect again. Should reject with InvalidStateError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/requestDevice/not-processing-user-gesture.https.html
Requires a user gesture.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnected-device-with-uuid.https.window.html
getPrimaryServices called before connecting. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryService/gen-disconnected-device.https.window.html
getPrimaryService called before connecting. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnect-called-before-with-uuid.https.window.html
disconnect() called before getPrimaryServices. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnect-invalidates-objects.https.window.html
Calls on services after we disconnect and connect again. Should reject with InvalidStateError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnected-device.https.window.html
getPrimaryServices called before connecting. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryService/gen-disconnect-called-before.https.window.html
disconnect() called before getPrimaryService. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnect-invalidates-objects-with-uuid.https.window.html
Calls on services after we disconnect and connect again. Should reject with InvalidStateError.: FAIL (Chrome: FAIL, Safari: FAIL)

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 10 tests and 1 subtests

Status Summary

Firefox

OK : 10
FAIL: 10

Chrome

OK : 10
FAIL: 10

Safari

OK : 10
FAIL: 10

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/bluetooth/server/getPrimaryServices/gen-disconnect-called-before.https.window.html
disconnect() called before getPrimaryServices. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryService/gen-disconnect-invalidates-objects.https.window.html
Calls on services after we disconnect and connect again. Should reject with InvalidStateError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/requestDevice/not-processing-user-gesture.https.html
Requires a user gesture.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnected-device-with-uuid.https.window.html
getPrimaryServices called before connecting. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryService/gen-disconnected-device.https.window.html
getPrimaryService called before connecting. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnect-called-before-with-uuid.https.window.html
disconnect() called before getPrimaryServices. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnect-invalidates-objects.https.window.html
Calls on services after we disconnect and connect again. Should reject with InvalidStateError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnected-device.https.window.html
getPrimaryServices called before connecting. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryService/gen-disconnect-called-before.https.window.html
disconnect() called before getPrimaryService. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnect-invalidates-objects-with-uuid.https.window.html
Calls on services after we disconnect and connect again. Should reject with InvalidStateError.: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dba8a8565df0
[wpt PR 20808] - Use [RaisesException] for immediate promise rejections in bluetooth, a=testonly

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 10 tests and 1 subtests

Status Summary

Firefox

OK : 10
FAIL: 10

Chrome

OK : 10
FAIL: 10

Safari

OK : 10
FAIL: 10

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/bluetooth/server/getPrimaryServices/gen-disconnect-called-before.https.window.html
disconnect() called before getPrimaryServices. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryService/gen-disconnect-invalidates-objects.https.window.html
Calls on services after we disconnect and connect again. Should reject with InvalidStateError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/requestDevice/not-processing-user-gesture.https.html
Requires a user gesture.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnected-device-with-uuid.https.window.html
getPrimaryServices called before connecting. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryService/gen-disconnected-device.https.window.html
getPrimaryService called before connecting. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnect-called-before-with-uuid.https.window.html
disconnect() called before getPrimaryServices. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnect-invalidates-objects.https.window.html
Calls on services after we disconnect and connect again. Should reject with InvalidStateError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnected-device.https.window.html
getPrimaryServices called before connecting. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryService/gen-disconnect-called-before.https.window.html
disconnect() called before getPrimaryService. Reject with NetworkError.: FAIL (Chrome: FAIL, Safari: FAIL)
/bluetooth/server/getPrimaryServices/gen-disconnect-invalidates-objects-with-uuid.https.window.html
Calls on services after we disconnect and connect again. Should reject with InvalidStateError.: FAIL (Chrome: FAIL, Safari: FAIL)

Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
You need to log in before you can comment on or make changes to this bug.