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

Issue 1466433002: Add Settings bluetooth page test (Closed)

Created:
5 years, 1 month ago by stevenjb
Modified:
4 years, 11 months ago
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, stevenjb+watch-md-settings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Settings bluetooth page test This includes a minor change to settings_page_browsertest.js to use $$ instead of shadowRoot.querySelector (thanks to dschuyler@ for the reminder). BUG=543299 For simple change to BUILD.gn: TBR=sky@chromium.org Committed: https://crrev.com/dc099e3095d5152131e84991125db6311cfb1568 Cr-Commit-Position: refs/heads/master@{#367018}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 18

Patch Set 3 : More Feedback #

Total comments: 7

Patch Set 4 : Add callback arg #

Total comments: 6

Patch Set 5 : More feedback #

Total comments: 6

Patch Set 6 : Fix calls to setTimeout #

Patch Set 7 : Disable test on Debug builds #

Patch Set 8 : Rebase #

Patch Set 9 : Rebase + Use FakeBluetooth + add device list tests #

Total comments: 36

Patch Set 10 : Feedback #

Patch Set 11 : Move 'self = this' comment to mocha_adapter.js #

Patch Set 12 : Add @types #

Patch Set 13 : Rebase #

Total comments: 6

Patch Set 14 : . #

Patch Set 15 : Rebase #

Patch Set 16 : Make Chrome OS only #

Total comments: 9

Patch Set 17 : Chrome OS only Take 2 #

Patch Set 18 : Chrome OS only Take 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -5 lines) Patch
M chrome/browser/resources/settings/bluetooth_page/bluetooth_page.html View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js View 1 2 3 4 5 6 7 8 9 3 chunks +26 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -1 line 0 comments Download
M chrome/test/data/webui/mocha_adapter.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/webui/settings/bluetooth_page_browsertest_chromeos.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +148 lines, -0 lines 0 comments Download
A chrome/test/data/webui/settings/fake_bluetooth.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +77 lines, -0 lines 0 comments Download
A chrome/test/data/webui/settings/fake_bluetooth_private.js View 1 2 3 4 5 6 7 8 9 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 77 (31 generated)
stevenjb
Note: not everyone needs to review this, but as the first subpage example using SettingsPageBrowserTest ...
5 years, 1 month ago (2015-11-19 20:01:50 UTC) #3
dpapad
https://codereview.chromium.org/1466433002/diff/20001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/20001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode26 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:26: self.enabled_ = false; Nit: How about turning enabled into ...
5 years, 1 month ago (2015-11-19 23:12:32 UTC) #4
michaelpg
https://codereview.chromium.org/1466433002/diff/20001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/1466433002/diff/20001/chrome/chrome_tests.gypi#newcode994 chrome/chrome_tests.gypi:994: 'test/data/webui/settings/bluetooth_page_browsertest.js', alphabetize https://codereview.chromium.org/1466433002/diff/20001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/20001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode7 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:7: // ...
5 years, 1 month ago (2015-11-20 15:08:18 UTC) #5
stevenjb
https://codereview.chromium.org/1466433002/diff/20001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/1466433002/diff/20001/chrome/chrome_tests.gypi#newcode994 chrome/chrome_tests.gypi:994: 'test/data/webui/settings/bluetooth_page_browsertest.js', On 2015/11/20 15:08:17, michaelpg wrote: > alphabetize Done. ...
5 years, 1 month ago (2015-11-20 17:47:41 UTC) #6
dpapad
https://codereview.chromium.org/1466433002/diff/40001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/40001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode28 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:28: callback({ Where is 'callback' defined? Should be passed as ...
5 years, 1 month ago (2015-11-20 18:05:22 UTC) #7
stevenjb
https://codereview.chromium.org/1466433002/diff/40001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/40001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode28 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:28: callback({ On 2015/11/20 18:05:22, dpapad wrote: > Where is ...
5 years, 1 month ago (2015-11-20 18:28:17 UTC) #8
michaelpg
https://codereview.chromium.org/1466433002/diff/20001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/20001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode49 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:49: bluetoothSection.querySelector('settings-bluetooth-page'); On 2015/11/20 17:47:40, stevenjb wrote: > On 2015/11/20 ...
5 years, 1 month ago (2015-11-20 18:46:37 UTC) #9
dpapad
lgtm https://codereview.chromium.org/1466433002/diff/10006/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/10006/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode25 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:25: var enabled_ = false; Nit: Local vars don't ...
5 years, 1 month ago (2015-11-20 18:49:43 UTC) #10
stevenjb
https://codereview.chromium.org/1466433002/diff/40001/chrome/test/data/webui/settings/settings_page_browsertest.js File chrome/test/data/webui/settings/settings_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/40001/chrome/test/data/webui/settings/settings_page_browsertest.js#newcode24 chrome/test/data/webui/settings/settings_page_browsertest.js:24: browsePreload: 'chrome://md-settings/', On 2015/11/20 18:46:37, michaelpg wrote: > On ...
5 years, 1 month ago (2015-11-20 18:55:03 UTC) #11
dschuyler
https://codereview.chromium.org/1466433002/diff/10006/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/10006/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode27 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:27: chrome.bluetooth.getAdapterState = function(callback) { Is it useful to add ...
5 years, 1 month ago (2015-11-20 22:22:36 UTC) #12
dschuyler
lgtm
5 years, 1 month ago (2015-11-20 22:23:03 UTC) #13
stevenjb
https://codereview.chromium.org/1466433002/diff/10006/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/10006/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode25 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:25: var enabled_ = false; On 2015/11/20 18:49:43, dpapad wrote: ...
5 years ago (2015-11-23 18:43:07 UTC) #14
michaelpg
https://codereview.chromium.org/1466433002/diff/20001/chrome/test/data/webui/settings/settings_page_browsertest.js File chrome/test/data/webui/settings/settings_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/20001/chrome/test/data/webui/settings/settings_page_browsertest.js#newcode57 chrome/test/data/webui/settings/settings_page_browsertest.js:57: var sections = page.shadowRoot.querySelectorAll('settings-section'); On 2015/11/20 17:47:41, stevenjb wrote: ...
5 years ago (2015-11-24 15:55:49 UTC) #15
stevenjb
PTAL https://codereview.chromium.org/1466433002/diff/70001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/70001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode39 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:39: setTimeout(callback()); On 2015/11/24 15:55:49, michaelpg wrote: > Did ...
5 years ago (2015-11-24 17:04:51 UTC) #16
stevenjb
Doing a rough scan of the output, SettingsMainPageBrowserTest is taking around 18s on Linux Tests ...
5 years ago (2015-11-24 17:13:26 UTC) #17
michaelpg
lgtm
5 years ago (2015-11-24 18:08:39 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1466433002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1466433002/130001
5 years ago (2015-12-07 18:28:39 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/88564) linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years ago (2015-12-07 19:46:27 UTC) #27
stevenjb
This has been re-factored to use the FakeBluetooth and FakeBluetoothPrivate APIs, with more tests added. ...
5 years ago (2015-12-16 20:52:01 UTC) #31
dpapad
https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode40 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:40: bluetoothApiForTest = this.bluetoothApi_; Where is bluetoothApiForTest defined, and where ...
5 years ago (2015-12-16 22:07:49 UTC) #32
dschuyler
https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode59 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:59: // and test() will be a Mocha 'Suite' or ...
5 years ago (2015-12-16 22:15:02 UTC) #33
stevenjb
https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode40 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:40: bluetoothApiForTest = this.bluetoothApi_; On 2015/12/16 22:07:48, dpapad wrote: > ...
5 years ago (2015-12-17 00:13:35 UTC) #35
dpapad
https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode59 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:59: // and test() will be a Mocha 'Suite' or ...
5 years ago (2015-12-17 01:12:54 UTC) #36
stevenjb
https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode59 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:59: // and test() will be a Mocha 'Suite' or ...
5 years ago (2015-12-17 01:28:57 UTC) #37
dschuyler
lgtm
5 years ago (2015-12-17 01:45:36 UTC) #38
dpapad
lgtm LGTM with suggestion. https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode40 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:40: bluetoothApiForTest = this.bluetoothApi_; On 2015/12/17 ...
5 years ago (2015-12-17 02:06:58 UTC) #39
stevenjb
https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js File chrome/test/data/webui/settings/bluetooth_page_browsertest.js (right): https://codereview.chromium.org/1466433002/diff/230001/chrome/test/data/webui/settings/bluetooth_page_browsertest.js#newcode40 chrome/test/data/webui/settings/bluetooth_page_browsertest.js:40: bluetoothApiForTest = this.bluetoothApi_; On 2015/12/17 02:06:58, dpapad wrote: > ...
5 years ago (2015-12-17 17:28:12 UTC) #40
michaelpg
https://codereview.chromium.org/1466433002/diff/330001/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js File chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js (right): https://codereview.chromium.org/1466433002/diff/330001/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js#newcode21 chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js:21: var bluetoothPage = bluetoothPage || { use cr.define? https://codereview.chromium.org/1466433002/diff/330001/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js#newcode65 ...
5 years ago (2015-12-17 22:07:17 UTC) #41
stevenjb
https://codereview.chromium.org/1466433002/diff/330001/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js File chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js (right): https://codereview.chromium.org/1466433002/diff/330001/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js#newcode21 chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js:21: var bluetoothPage = bluetoothPage || { On 2015/12/17 22:07:16, ...
5 years ago (2015-12-17 22:13:57 UTC) #42
stevenjb
P.S. Please make sure to take a look at the CL that this one depends ...
5 years ago (2015-12-17 22:14:33 UTC) #43
michaelpg
SLGTM
5 years ago (2015-12-17 23:09:04 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1466433002/350001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1466433002/350001
5 years ago (2015-12-18 23:41:51 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/157828)
5 years ago (2015-12-18 23:53:44 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1466433002/370001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1466433002/370001
5 years ago (2015-12-21 18:05:41 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/95317)
5 years ago (2015-12-21 18:52:18 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1466433002/390001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1466433002/390001
4 years, 11 months ago (2015-12-28 18:20:03 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/96408)
4 years, 11 months ago (2015-12-28 19:07:39 UTC) #59
Dan Beam
You already have 3 reviewers, so I know you don't need more, but... lgtm I ...
4 years, 11 months ago (2015-12-28 20:01:39 UTC) #61
michaelpg
https://codereview.chromium.org/1466433002/diff/390001/chrome/test/data/webui/mocha_adapter.js File chrome/test/data/webui/mocha_adapter.js (right): https://codereview.chromium.org/1466433002/diff/390001/chrome/test/data/webui/mocha_adapter.js#newcode13 chrome/test/data/webui/mocha_adapter.js:13: // the Mocha Suite or Test instance. On 2015/12/28 ...
4 years, 11 months ago (2015-12-28 20:39:36 UTC) #62
stevenjb
https://codereview.chromium.org/1466433002/diff/390001/chrome/test/data/webui/mocha_adapter.js File chrome/test/data/webui/mocha_adapter.js (right): https://codereview.chromium.org/1466433002/diff/390001/chrome/test/data/webui/mocha_adapter.js#newcode13 chrome/test/data/webui/mocha_adapter.js:13: // the Mocha Suite or Test instance. On 2015/12/28 ...
4 years, 11 months ago (2015-12-28 20:49:16 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1466433002/430001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1466433002/430001
4 years, 11 months ago (2015-12-28 21:20:53 UTC) #67
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/131767)
4 years, 11 months ago (2015-12-28 21:28:17 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1466433002/430001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1466433002/430001
4 years, 11 months ago (2015-12-28 21:32:47 UTC) #72
Dan Beam
still lgtm though I agree with michaelpg@ about sticking to precedence where possible re: cr.define ...
4 years, 11 months ago (2015-12-28 21:55:15 UTC) #73
commit-bot: I haz the power
Committed patchset #18 (id:430001)
4 years, 11 months ago (2015-12-28 22:26:05 UTC) #75
commit-bot: I haz the power
4 years, 11 months ago (2015-12-28 22:26:42 UTC) #77
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/dc099e3095d5152131e84991125db6311cfb1568
Cr-Commit-Position: refs/heads/master@{#367018}

Powered by Google App Engine
This is Rietveld 408576698