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

Issue 303503004: Change directory if the active list item on navigation list is changed. (Closed)

Created:
6 years, 7 months ago by fukino
Modified:
6 years, 6 months ago
Reviewers:
yoshiki
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yoshiki+watch_chromium.org
Visibility:
Public.

Description

Change directory if the active list item on navigation list is changed. We want to change current directory if the active item on navigation list is changed. But we don't want to change current directory when listed items are spliced or permuted. In both cases, 'change' event is dispatched from selection model and we can't distinguish these cases from event itself. currentActiveItem_ is introduced to detect change of actual active item. BUG=375663 TEST=go through steps in Issue 375663 and 361047 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273601 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275359

Patch Set 1 #

Patch Set 2 : Corrected variable names and removed unintentional blank line. #

Patch Set 3 : Removed one more unnecessary blank line. #

Patch Set 4 : Update the currentModelItem in onSelectionChange_ and change process of selectByIndex. #

Patch Set 5 : Add browser tests for folder shortcuts. #

Total comments: 14

Patch Set 6 : Correct comments and arrange test scripts in alphabetical order. #

Total comments: 6

Patch Set 7 : Corrected indentation. #

Patch Set 8 : Ensure that the expand volume is populated before clicking it. #

Patch Set 9 : Add one more wait to ensure the element clickable. #

Patch Set 10 : Divide browser tests into smaller parts and disable them on debug build. #

Total comments: 14

Patch Set 11 : Modify comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+465 lines, -12 lines) Patch
M chrome/browser/chromeos/file_manager/file_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/folder_shortcuts.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +384 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager_test_manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_manager_browsertest/test_util.js View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/test_util.js View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/ui/navigation_list.js View 1 2 3 4 5 6 7 8 9 10 4 chunks +22 lines, -10 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
fukino
@yoshiki - This is a plan which looks robust for me (among plans I can ...
6 years, 7 months ago (2014-05-26 13:00:19 UTC) #1
fukino
yoshiki san, could you take a look? I modified three functions. onSelectionChange_() : Before returning, ...
6 years, 6 months ago (2014-05-27 09:07:17 UTC) #2
yoshiki
https://codereview.chromium.org/303503004/diff/80001/chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js File chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js (right): https://codereview.chromium.org/303503004/diff/80001/chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js#newcode21 chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js:21: * Entry set which is used for this test. ...
6 years, 6 months ago (2014-05-29 04:24:44 UTC) #3
fukino
Thank you for quick review! I'm sorry for too many comment errors... https://codereview.chromium.org/303503004/diff/80001/chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js File chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js ...
6 years, 6 months ago (2014-05-29 04:46:59 UTC) #4
yoshiki
sorry for late. LTGM with nit https://codereview.chromium.org/303503004/diff/100001/chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js File chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js (right): https://codereview.chromium.org/303503004/diff/100001/chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js#newcode153 chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js:153: 'fakeMouseRightClick', windowId, ['.table-row[selected]']); ...
6 years, 6 months ago (2014-05-29 11:03:05 UTC) #5
yoshiki
On 2014/05/29 11:03:05, yoshiki wrote: > sorry for late. LTGM with nit > > https://codereview.chromium.org/303503004/diff/100001/chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js ...
6 years, 6 months ago (2014-05-29 11:07:58 UTC) #6
fukino
Corrected indentation. Thanks! https://codereview.chromium.org/303503004/diff/100001/chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js File chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js (right): https://codereview.chromium.org/303503004/diff/100001/chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js#newcode153 chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js:153: 'fakeMouseRightClick', windowId, ['.table-row[selected]']); On 2014/05/29 11:03:05, ...
6 years, 6 months ago (2014-05-29 11:17:14 UTC) #7
fukino
The CQ bit was checked by fukino@chromium.org
6 years, 6 months ago (2014-05-29 11:17:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fukino@chromium.org/303503004/120001
6 years, 6 months ago (2014-05-29 11:18:28 UTC) #9
commit-bot: I haz the power
Change committed as 273601
6 years, 6 months ago (2014-05-29 21:21:02 UTC) #10
fukino
A revert of this CL has been created in https://codereview.chromium.org/307053002/ by fukino@chromium.org. The reason for ...
6 years, 6 months ago (2014-05-30 05:18:11 UTC) #11
fukino
yoshiki-san, could you take a look? Only test code changed. I divide the too slow ...
6 years, 6 months ago (2014-06-05 11:27:38 UTC) #12
yoshiki
lgtm with nits https://codereview.chromium.org/303503004/diff/160001/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc File chrome/browser/chromeos/file_manager/file_manager_browsertest.cc (right): https://codereview.chromium.org/303503004/diff/160001/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc#newcode905 chrome/browser/chromeos/file_manager/file_manager_browsertest.cc:905: #define WRAPPED_INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator) \ On ...
6 years, 6 months ago (2014-06-05 15:11:23 UTC) #13
fukino
Thank you for comments! https://codereview.chromium.org/303503004/diff/160001/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc File chrome/browser/chromeos/file_manager/file_manager_browsertest.cc (right): https://codereview.chromium.org/303503004/diff/160001/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc#newcode905 chrome/browser/chromeos/file_manager/file_manager_browsertest.cc:905: #define WRAPPED_INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator) \ ...
6 years, 6 months ago (2014-06-06 02:15:25 UTC) #14
yoshiki
Still lgtm https://codereview.chromium.org/303503004/diff/160001/chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/folder_shortcuts.js File chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/folder_shortcuts.js (right): https://codereview.chromium.org/303503004/diff/160001/chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/folder_shortcuts.js#newcode83 chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/folder_shortcuts.js:83: openNewWindow(null, RootPath.DRIVE), On 2014/06/06 02:15:24, fukino wrote: ...
6 years, 6 months ago (2014-06-06 02:53:10 UTC) #15
fukino
The CQ bit was checked by fukino@chromium.org
6 years, 6 months ago (2014-06-06 04:55:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fukino@chromium.org/303503004/180001
6 years, 6 months ago (2014-06-06 04:55:58 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-06 09:13:08 UTC) #18
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 09:54:19 UTC) #19
Message was sent while issue was closed.
Change committed as 275359

Powered by Google App Engine
This is Rietveld 408576698