Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(799)

Issue 1304353004: Test that the right events are sent to the Bluetooth chooser. (Closed)

Created:
5 years, 3 months ago by Jeffrey Yasskin
Modified:
5 years, 3 months ago
Reviewers:
scheib, ortuno
CC:
blink-reviews, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@pinned
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Test that the right events are sent to the Bluetooth chooser. And that the chooser can control which device is returned from requestDevice(). Depends on https://codereview.chromium.org/1325953002 for testing functions, which are specified in https://webbluetoothcg.github.io/web-bluetooth/tests/. BUG=500989 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=202647

Patch Set 1 #

Patch Set 2 : Fix requestDevice LayoutTest for new BT chooser event names. #

Total comments: 9

Patch Set 3 : Fix ortuno's comments #

Total comments: 1

Patch Set 4 : Deal with asynchronous getBluetoothManualChooserEvents(). #

Patch Set 5 : Use callbacks instead of promises. #

Total comments: 2

Patch Set 6 : Give expected_count a default. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -14 lines) Patch
M LayoutTests/bluetooth/requestDevice.html View 1 2 3 3 chunks +54 lines, -14 lines 0 comments Download
M LayoutTests/bluetooth/resources/bluetooth-helpers.js View 1 2 3 4 5 2 chunks +41 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304353004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304353004/20001
5 years, 3 months ago (2015-09-17 21:24:46 UTC) #4
Jeffrey Yasskin
PTAL
5 years, 3 months ago (2015-09-17 21:27:24 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/108943)
5 years, 3 months ago (2015-09-17 22:55:46 UTC) #7
ortuno
https://codereview.chromium.org/1304353004/diff/20001/LayoutTests/bluetooth/requestDevice.html File LayoutTests/bluetooth/requestDevice.html (right): https://codereview.chromium.org/1304353004/diff/20001/LayoutTests/bluetooth/requestDevice.html#newcode140 LayoutTests/bluetooth/requestDevice.html:140: let deadline = Date.now() + 500; do we really ...
5 years, 3 months ago (2015-09-18 00:21:02 UTC) #8
ortuno
Also we should add a TODO or open an issue to remind us that we ...
5 years, 3 months ago (2015-09-18 00:23:38 UTC) #9
Jeffrey Yasskin
On 2015/09/18 00:23:38, ortuno wrote: > Also we should add a TODO or open an ...
5 years, 3 months ago (2015-09-18 01:27:44 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304353004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304353004/60001
5 years, 3 months ago (2015-09-18 01:30:44 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/109152)
5 years, 3 months ago (2015-09-18 02:52:45 UTC) #14
ortuno
lgtm https://codereview.chromium.org/1304353004/diff/20001/LayoutTests/bluetooth/requestDevice.html File LayoutTests/bluetooth/requestDevice.html (right): https://codereview.chromium.org/1304353004/diff/20001/LayoutTests/bluetooth/requestDevice.html#newcode151 LayoutTests/bluetooth/requestDevice.html:151: let device = addDeviceRegex.exec(addedDevice); On 2015/09/18 at 01:27:44, ...
5 years, 3 months ago (2015-09-18 19:56:20 UTC) #15
Jeffrey Yasskin
On 2015/09/18 19:56:20, ortuno wrote: > lgtm > > https://codereview.chromium.org/1304353004/diff/20001/LayoutTests/bluetooth/requestDevice.html > File LayoutTests/bluetooth/requestDevice.html (right): > ...
5 years, 3 months ago (2015-09-18 21:06:39 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304353004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304353004/100001
5 years, 3 months ago (2015-09-22 16:56:44 UTC) #18
Jeffrey Yasskin
Hey Gio, can you look again? I had to switch to callbacks in https://codereview.chromium.org/1351393002/ to ...
5 years, 3 months ago (2015-09-22 17:14:27 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-22 18:38:45 UTC) #21
ortuno
lgtm https://codereview.chromium.org/1304353004/diff/100001/LayoutTests/bluetooth/resources/bluetooth-helpers.js File LayoutTests/bluetooth/resources/bluetooth-helpers.js (right): https://codereview.chromium.org/1304353004/diff/100001/LayoutTests/bluetooth/resources/bluetooth-helpers.js#newcode67 LayoutTests/bluetooth/resources/bluetooth-helpers.js:67: if (expected_count === undefined || events.length >= expected_count) ...
5 years, 3 months ago (2015-09-22 19:00:02 UTC) #22
Jeffrey Yasskin
https://codereview.chromium.org/1304353004/diff/100001/LayoutTests/bluetooth/resources/bluetooth-helpers.js File LayoutTests/bluetooth/resources/bluetooth-helpers.js (right): https://codereview.chromium.org/1304353004/diff/100001/LayoutTests/bluetooth/resources/bluetooth-helpers.js#newcode67 LayoutTests/bluetooth/resources/bluetooth-helpers.js:67: if (expected_count === undefined || events.length >= expected_count) { ...
5 years, 3 months ago (2015-09-22 20:01:34 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304353004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304353004/120001
5 years, 3 months ago (2015-09-22 20:02:23 UTC) #26
commit-bot: I haz the power
5 years, 3 months ago (2015-09-22 21:13:38 UTC) #27
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=202647

Powered by Google App Engine
This is Rietveld 408576698