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

Issue 2532383005: bluetooth: Fix BluetoothInternalsTest timeout issue (Closed)

Created:
4 years ago by mbrunson
Modified:
4 years ago
Reviewers:
scheib, ortuno, dpapad
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Fix BluetoothInternalsTest timeout issue Timeouts caused by race condition where the web page executes before the test has fully initialized the proxy objects has caused BluetoothInternalsTest to fail. To fix this problem, the proxy objects are fully initialized with a copy of the test data right after they are created in the test fixture so that the order of execution doesn't matter. BUG=667970 Committed: https://crrev.com/5a8c26b53389fc1e0717a529075f71d0e2b4bf91 Cr-Commit-Position: refs/heads/master@{#437644}

Patch Set 1 #

Patch Set 2 : Merge upstream, push test update to later patch #

Patch Set 3 : Merge upstream #

Patch Set 4 : Change test structure #

Total comments: 4

Patch Set 5 : Fix tabbing #

Total comments: 12

Patch Set 6 : Add setupFnResolver and move setting of test data #

Patch Set 7 : Revert patch set 6, fix indentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -72 lines) Patch
M chrome/test/data/webui/bluetooth_internals_browsertest.js View 1 2 3 4 5 6 9 chunks +106 lines, -72 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 58 (43 generated)
mbrunson
4 years ago (2016-12-07 23:26:51 UTC) #26
ortuno
yay! now we don't need PromiseResolver :). lgtm bar some whitespace issues and a fix ...
4 years ago (2016-12-08 05:37:31 UTC) #30
scheib
LGTM
4 years ago (2016-12-08 06:20:22 UTC) #31
mbrunson
https://codereview.chromium.org/2532383005/diff/60001/chrome/test/data/webui/bluetooth_internals_browsertest.js File chrome/test/data/webui/bluetooth_internals_browsertest.js (right): https://codereview.chromium.org/2532383005/diff/60001/chrome/test/data/webui/bluetooth_internals_browsertest.js#newcode125 chrome/test/data/webui/bluetooth_internals_browsertest.js:125: return Promise.resolve({info: this.adapterInfo_}); On 2016/12/08 05:37:31, ortuno wrote: > ...
4 years ago (2016-12-08 19:31:08 UTC) #33
mbrunson
4 years ago (2016-12-08 21:21:28 UTC) #39
dpapad
https://codereview.chromium.org/2532383005/diff/80001/chrome/test/data/webui/bluetooth_internals_browsertest.js File chrome/test/data/webui/bluetooth_internals_browsertest.js (right): https://codereview.chromium.org/2532383005/diff/80001/chrome/test/data/webui/bluetooth_internals_browsertest.js#newcode163 chrome/test/data/webui/bluetooth_internals_browsertest.js:163: this.setupResolver.resolve(); Instead of calling setTestDevices(), setTestAdapter() and resolve() here, ...
4 years ago (2016-12-08 22:36:15 UTC) #40
mbrunson
https://codereview.chromium.org/2532383005/diff/80001/chrome/test/data/webui/bluetooth_internals_browsertest.js File chrome/test/data/webui/bluetooth_internals_browsertest.js (right): https://codereview.chromium.org/2532383005/diff/80001/chrome/test/data/webui/bluetooth_internals_browsertest.js#newcode163 chrome/test/data/webui/bluetooth_internals_browsertest.js:163: this.setupResolver.resolve(); On 2016/12/08 22:36:15, dpapad wrote: > Instead of ...
4 years ago (2016-12-09 00:08:23 UTC) #41
dpapad
https://codereview.chromium.org/2532383005/diff/80001/chrome/test/data/webui/bluetooth_internals_browsertest.js File chrome/test/data/webui/bluetooth_internals_browsertest.js (right): https://codereview.chromium.org/2532383005/diff/80001/chrome/test/data/webui/bluetooth_internals_browsertest.js#newcode147 chrome/test/data/webui/bluetooth_internals_browsertest.js:147: adapter.AdapterFactory.name, Indentation off by 2. https://codereview.chromium.org/2532383005/diff/80001/chrome/test/data/webui/bluetooth_internals_browsertest.js#newcode152 chrome/test/data/webui/bluetooth_internals_browsertest.js:152: this.adapterFactory = ...
4 years ago (2016-12-09 00:53:15 UTC) #42
mbrunson
https://codereview.chromium.org/2532383005/diff/80001/chrome/test/data/webui/bluetooth_internals_browsertest.js File chrome/test/data/webui/bluetooth_internals_browsertest.js (right): https://codereview.chromium.org/2532383005/diff/80001/chrome/test/data/webui/bluetooth_internals_browsertest.js#newcode147 chrome/test/data/webui/bluetooth_internals_browsertest.js:147: adapter.AdapterFactory.name, On 2016/12/09 00:53:15, dpapad wrote: > Indentation off ...
4 years ago (2016-12-09 02:51:04 UTC) #43
dpapad
LGTM for patchset 5. See comment for more details (feel free to follow my suggestion ...
4 years ago (2016-12-09 03:44:45 UTC) #44
ortuno
On 2016/12/09 at 02:51:04, mbrunson wrote: > https://codereview.chromium.org/2532383005/diff/80001/chrome/test/data/webui/bluetooth_internals_browsertest.js > File chrome/test/data/webui/bluetooth_internals_browsertest.js (right): > > https://codereview.chromium.org/2532383005/diff/80001/chrome/test/data/webui/bluetooth_internals_browsertest.js#newcode147 ...
4 years ago (2016-12-09 03:44:55 UTC) #45
ortuno
lgtm Ah dpapad's comment and mine collided. I'm OK with keeping Patchset 5 if dpapad ...
4 years ago (2016-12-09 03:53:09 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2532383005/120001
4 years ago (2016-12-09 20:30:03 UTC) #53
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-09 20:57:12 UTC) #56
commit-bot: I haz the power
4 years ago (2016-12-12 14:40:34 UTC) #58
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5a8c26b53389fc1e0717a529075f71d0e2b4bf91
Cr-Commit-Position: refs/heads/master@{#437644}

Powered by Google App Engine
This is Rietveld 408576698