[wpt-sync] Sync PR 27140 - usb: Expand tests for USB transfer completion order
Categories
(Core :: DOM: Device Interfaces, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox86 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
Sync web-platform-tests PR 27140 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/27140
Details from upstream follow.
b'Reilly Grant <reillyg@chromium.org>' wrote:
usb: Expand tests for USB transfer completion order
This change expands the manual test for transferIn() to send much more
data and assert that many overlapping transfers will still complete in
the correct order.Two changes are necessary to make these tests pass. First, when aborting
a transfer on device close the ERROR_REQUEST_ABORTED should be mapped to
an AbortError DOMException. Second, transfers should be tracked in a
list rather than a map so that iteration order is well defined.Bug: 1153647
Change-Id: I248ce4724e391216783a6873809aca43e4690b96
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2591928
Commit-Queue: Reilly Grant \<reillyg@chromium.org>
Reviewed-by: James Hollyer \<jameshollyer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842380}
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Comment 6•5 years ago
|
||
Automatic update from web-platform-tests
usb: Expand tests for USB transfer completion order
This change expands the manual test for transferIn() to send much more
data and assert that many overlapping transfers will still complete in
the correct order.
Two changes are necessary to make these tests pass. First, when aborting
a transfer on device close the ERROR_REQUEST_ABORTED should be mapped to
an AbortError DOMException. Second, transfers should be tracked in a
list rather than a map so that iteration order is well defined.
Bug: 1153647
Change-Id: I248ce4724e391216783a6873809aca43e4690b96
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2591928
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Reviewed-by: James Hollyer <jameshollyer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842380}
--
wpt-commits: 80090f6edd23993e9907dbc9fb1c6af7aebf91e7
wpt-pr: 27140
Assignee | ||
Comment 7•5 years ago
|
||
Comment 9•5 years ago
|
||
bugherder |
Description
•