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

Issue 663513003: Add an unittest for background/volume_manager.js (Closed)

Created:
6 years, 2 months ago by yawano
Modified:
6 years, 1 month ago
Reviewers:
mtomasz, hirono
CC:
chromium-reviews, nkostylev+watch_chromium.org, yoshiki+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add an unittest for background/volume_manager.js BUG=315436 TEST=out/Release/browser_tests --gtest_filter=FileManagerJsTest.* Committed: https://crrev.com/592b47ebda6a572d7ee00cd579530553713f2c8c Cr-Commit-Position: refs/heads/master@{#302230}

Patch Set 1 #

Patch Set 2 : Added test cases. #

Patch Set 3 : Added comments. #

Total comments: 15

Patch Set 4 : Removed unnecessary property. #

Patch Set 5 : Fixed type annotation. #

Patch Set 6 : Fixed comment. #

Patch Set 7 : Changed to use enum values. #

Patch Set 8 : Merged TestFileSystem and MockFileSystem. #

Total comments: 2

Patch Set 9 : Use reportPromise. #

Total comments: 26

Patch Set 10 : Extracted reportPromise to test_util.js. #

Patch Set 11 : Renamed variables. #

Total comments: 4

Patch Set 12 : Fixed nits. #

Patch Set 13 : Rebase. #

Patch Set 14 : Rebase: Changed import_history_unittest to use MockFileSystem. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -31 lines) Patch
M chrome/browser/chromeos/file_manager/file_manager_jstest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/data/file_manager/unit_tests/file_operation_manager_unittest.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/file_manager/unit_tests/import_history_unittest.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/data/file_manager/unit_tests/mocks/mock_entry.js View 1 2 3 4 5 6 7 3 chunks +28 lines, -6 lines 0 comments Download
M chrome/test/data/file_manager/unit_tests/mocks/mock_file_system.js View 1 2 3 4 5 6 7 1 chunk +0 lines, -13 lines 0 comments Download
M chrome/test/data/file_manager/unit_tests/mocks/mock_volume_manager.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/file_manager/unit_tests/navigation_list_model_unittest.html View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
A chrome/test/data/file_manager/unit_tests/test_util.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/test/data/file_manager/unit_tests/volume_manager_unittest.html View 1 2 3 4 5 6 7 8 9 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/test/data/file_manager/unit_tests/volume_manager_unittest.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +240 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/volume_manager.js View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 42 (13 generated)
yawano
Added test cases for background/volume_manager.js. PTAL. Thanks.
6 years, 2 months ago (2014-10-24 06:50:11 UTC) #2
hirono
https://codereview.chromium.org/663513003/diff/40001/chrome/test/data/file_manager/unit_tests/mocks/mock_entry.js File chrome/test/data/file_manager/unit_tests/mocks/mock_entry.js (right): https://codereview.chromium.org/663513003/diff/40001/chrome/test/data/file_manager/unit_tests/mocks/mock_entry.js#newcode49 chrome/test/data/file_manager/unit_tests/mocks/mock_entry.js:49: get fileSystem() { Is it needed? We already have ...
6 years, 2 months ago (2014-10-24 07:12:22 UTC) #3
yawano
Thank you for the review. Removed unnecessary property and added comments. PTAL. https://codereview.chromium.org/663513003/diff/40001/chrome/test/data/file_manager/unit_tests/mocks/mock_entry.js File chrome/test/data/file_manager/unit_tests/mocks/mock_entry.js ...
6 years, 1 month ago (2014-10-27 00:25:08 UTC) #4
hirono
https://codereview.chromium.org/663513003/diff/40001/chrome/test/data/file_manager/unit_tests/mocks/mock_file_system.js File chrome/test/data/file_manager/unit_tests/mocks/mock_file_system.js (right): https://codereview.chromium.org/663513003/diff/40001/chrome/test/data/file_manager/unit_tests/mocks/mock_file_system.js#newcode10 chrome/test/data/file_manager/unit_tests/mocks/mock_file_system.js:10: function MockFileSystem(volumeId) { On 2014/10/27 00:25:08, yawano wrote: > ...
6 years, 1 month ago (2014-10-27 02:15:28 UTC) #5
yawano
Merged TestFileSystem and MockFileSystem into one class. PTAL. Thanks.
6 years, 1 month ago (2014-10-27 05:09:10 UTC) #6
hirono
https://codereview.chromium.org/663513003/diff/40001/chrome/test/data/file_manager/unit_tests/volume_manager_unittest.js File chrome/test/data/file_manager/unit_tests/volume_manager_unittest.js (right): https://codereview.chromium.org/663513003/diff/40001/chrome/test/data/file_manager/unit_tests/volume_manager_unittest.js#newcode108 chrome/test/data/file_manager/unit_tests/volume_manager_unittest.js:108: if(!initialized) { On 2014/10/27 00:25:08, yawano wrote: > On ...
6 years, 1 month ago (2014-10-27 09:50:12 UTC) #7
yawano
Thank you for the review, and sorry for my late response. Added VolumeManager.revokeInstanceForTesting and changed ...
6 years, 1 month ago (2014-10-29 04:07:24 UTC) #8
hirono
https://codereview.chromium.org/663513003/diff/160001/chrome/test/data/file_manager/unit_tests/volume_manager_unittest.js File chrome/test/data/file_manager/unit_tests/volume_manager_unittest.js (right): https://codereview.chromium.org/663513003/diff/160001/chrome/test/data/file_manager/unit_tests/volume_manager_unittest.js#newcode13 chrome/test/data/file_manager/unit_tests/volume_manager_unittest.js:13: * test failed. 4 spaces are needed when wrapping ...
6 years, 1 month ago (2014-10-29 10:02:46 UTC) #9
yawano
Thank you for the review. PTAL. https://codereview.chromium.org/663513003/diff/160001/chrome/test/data/file_manager/unit_tests/volume_manager_unittest.js File chrome/test/data/file_manager/unit_tests/volume_manager_unittest.js (right): https://codereview.chromium.org/663513003/diff/160001/chrome/test/data/file_manager/unit_tests/volume_manager_unittest.js#newcode13 chrome/test/data/file_manager/unit_tests/volume_manager_unittest.js:13: * test failed. ...
6 years, 1 month ago (2014-10-30 09:11:47 UTC) #10
hirono
lgtm with nits. Thanks! https://codereview.chromium.org/663513003/diff/200001/chrome/test/data/file_manager/unit_tests/test_util.js File chrome/test/data/file_manager/unit_tests/test_util.js (right): https://codereview.chromium.org/663513003/diff/200001/chrome/test/data/file_manager/unit_tests/test_util.js#newcode21 chrome/test/data/file_manager/unit_tests/test_util.js:21: nit: The last line is ...
6 years, 1 month ago (2014-10-30 09:35:51 UTC) #11
yawano
Thank you for the review! I fixed them. https://codereview.chromium.org/663513003/diff/200001/chrome/test/data/file_manager/unit_tests/test_util.js File chrome/test/data/file_manager/unit_tests/test_util.js (right): https://codereview.chromium.org/663513003/diff/200001/chrome/test/data/file_manager/unit_tests/test_util.js#newcode21 chrome/test/data/file_manager/unit_tests/test_util.js:21: On ...
6 years, 1 month ago (2014-10-30 10:18:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/663513003/220001
6 years, 1 month ago (2014-10-30 10:19:40 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/21198)
6 years, 1 month ago (2014-10-30 10:23:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/663513003/220001
6 years, 1 month ago (2014-10-31 00:34:48 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/18154) chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/21409) linux_chromium_rel_ng ...
6 years, 1 month ago (2014-10-31 00:40:28 UTC) #20
yawano
Since we renamed TestFileSystem to MockFileSystem, it broke import_history_unittest, and I fixed import_history_unittest to pass ...
6 years, 1 month ago (2014-10-31 01:59:11 UTC) #21
hirono
still lgtm
6 years, 1 month ago (2014-10-31 02:29:59 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/663513003/260001
6 years, 1 month ago (2014-10-31 02:31:38 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/21426)
6 years, 1 month ago (2014-10-31 02:35:46 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/663513003/260001
6 years, 1 month ago (2014-10-31 03:52:21 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/21432)
6 years, 1 month ago (2014-10-31 03:56:15 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/663513003/260001
6 years, 1 month ago (2014-10-31 06:01:45 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/21449)
6 years, 1 month ago (2014-10-31 06:05:05 UTC) #34
yawano
@mtomasz: PTAL this CL? Thank you.
6 years, 1 month ago (2014-10-31 06:11:01 UTC) #36
mtomasz
On 2014/10/31 06:11:01, yawano wrote: > @mtomasz: PTAL this CL? Thank you. file_manager_jstest.cc lgtm
6 years, 1 month ago (2014-10-31 06:13:54 UTC) #37
yawano
On 2014/10/31 06:13:54, mtomasz wrote: > On 2014/10/31 06:11:01, yawano wrote: > > @mtomasz: PTAL ...
6 years, 1 month ago (2014-10-31 06:15:11 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/663513003/260001
6 years, 1 month ago (2014-10-31 06:16:02 UTC) #40
commit-bot: I haz the power
Committed patchset #14 (id:260001)
6 years, 1 month ago (2014-10-31 06:18:28 UTC) #41
commit-bot: I haz the power
6 years, 1 month ago (2014-10-31 06:19:07 UTC) #42
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/592b47ebda6a572d7ee00cd579530553713f2c8c
Cr-Commit-Position: refs/heads/master@{#302230}

Powered by Google App Engine
This is Rietveld 408576698