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

Issue 2650403005: Fix promises in file manager device handler unit tests. (Closed)

Created:
3 years, 11 months ago by Daniel Erat
Modified:
3 years, 10 months ago
Reviewers:
fukino
CC:
chromium-reviews, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yamaguchi+watch_chromium.org, fukino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix promises in file manager device handler unit tests. Several tests for chrome.fileManagerPrivate's DeviceHandler class were failing to pass the correct promises to reportPromise(), resulting in failed assertions being ignored. Switch to creating promises inline to make this less likely in the future. BUG=none CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2650403005 Cr-Commit-Position: refs/heads/master@{#446547} Committed: https://chromium.googlesource.com/chromium/src/+/78326029c3f06738fd2169474282c2d354d5ea28

Patch Set 1 #

Total comments: 2

Patch Set 2 : update a call that i missed #

Patch Set 3 : inline promise creation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -135 lines) Patch
M ui/file_manager/file_manager/background/js/device_handler_unittest.js View 1 2 14 chunks +139 lines, -135 lines 0 comments Download

Messages

Total messages: 27 (19 generated)
Daniel Erat
i think that this fixes the problem i encountered in https://codereview.chromium.org/2645353005/. please let me know ...
3 years, 11 months ago (2017-01-26 19:52:18 UTC) #3
fukino
Thank you for the investigation and fixing the issue! lgtm assuming a comment is resolved. ...
3 years, 11 months ago (2017-01-26 22:33:24 UTC) #8
Daniel Erat
https://codereview.chromium.org/2650403005/diff/1/ui/file_manager/file_manager/background/js/device_handler_unittest.js File ui/file_manager/file_manager/background/js/device_handler_unittest.js (right): https://codereview.chromium.org/2650403005/diff/1/ui/file_manager/file_manager/background/js/device_handler_unittest.js#newcode153 ui/file_manager/file_manager/background/js/device_handler_unittest.js:153: reportPromise(resolver.promise, callback); On 2017/01/26 22:33:24, fukino wrote: > resolver.promise ...
3 years, 11 months ago (2017-01-26 22:37:53 UTC) #11
fukino
On 2017/01/26 22:37:53, Daniel Erat wrote: > https://codereview.chromium.org/2650403005/diff/1/ui/file_manager/file_manager/background/js/device_handler_unittest.js > File ui/file_manager/file_manager/background/js/device_handler_unittest.js > (right): > > ...
3 years, 11 months ago (2017-01-26 22:42:26 UTC) #14
Daniel Erat
mind taking another look? i've moved all of the promise creation inline to hopefully make ...
3 years, 11 months ago (2017-01-27 00:05:04 UTC) #19
fukino
LGTM. Indentation looks correct. Thank you for making them clearer & safer!
3 years, 11 months ago (2017-01-27 00:09:19 UTC) #21
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/2650403005/40001
3 years, 11 months ago (2017-01-27 00:20:33 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 02:39:51 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/78326029c3f06738fd2169474282...

Powered by Google App Engine
This is Rietveld 408576698