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

Side by Side Diff: chrome/browser/chromeos/file_manager/file_manager_browsertest.cc

Issue 275493006: Files.app: Fix selection on creating new folder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a test Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Browser test for basic Chrome OS file manager functionality: 5 // Browser test for basic Chrome OS file manager functionality:
6 // - The file list is updated when a file is added externally to the Downloads 6 // - The file list is updated when a file is added externally to the Downloads
7 // folder. 7 // folder.
8 // - Selecting a file and copy-pasting it with the keyboard copies the file. 8 // - Selecting a file and copy-pasting it with the keyboard copies the file.
9 // - Selecting a file and pressing delete deletes it. 9 // - Selecting a file and pressing delete deletes it.
10 10
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 TestParameter(IN_GUEST_MODE, "audioOpenDownloads"), 746 TestParameter(IN_GUEST_MODE, "audioOpenDownloads"),
747 TestParameter(NOT_IN_GUEST_MODE, "audioOpenDownloads"), 747 TestParameter(NOT_IN_GUEST_MODE, "audioOpenDownloads"),
748 TestParameter(NOT_IN_GUEST_MODE, "audioOpenDrive"), 748 TestParameter(NOT_IN_GUEST_MODE, "audioOpenDrive"),
749 TestParameter(NOT_IN_GUEST_MODE, "audioAutoAdvanceDrive"), 749 TestParameter(NOT_IN_GUEST_MODE, "audioAutoAdvanceDrive"),
750 TestParameter(NOT_IN_GUEST_MODE, "audioRepeatSingleFileDrive"), 750 TestParameter(NOT_IN_GUEST_MODE, "audioRepeatSingleFileDrive"),
751 TestParameter(NOT_IN_GUEST_MODE, "audioNoRepeatSingleFileDrive"), 751 TestParameter(NOT_IN_GUEST_MODE, "audioNoRepeatSingleFileDrive"),
752 TestParameter(NOT_IN_GUEST_MODE, "audioRepeatMultipleFileDrive"), 752 TestParameter(NOT_IN_GUEST_MODE, "audioRepeatMultipleFileDrive"),
753 TestParameter(NOT_IN_GUEST_MODE, "audioNoRepeatMultipleFileDrive"))); 753 TestParameter(NOT_IN_GUEST_MODE, "audioNoRepeatMultipleFileDrive")));
754 754
755 INSTANTIATE_TEST_CASE_P( 755 INSTANTIATE_TEST_CASE_P(
756 CreateNewFolder,
757 FileManagerBrowserTest,
758 ::testing::Values(TestParameter(IN_GUEST_MODE,
759 "createNewFolderAfterSelectFile"),
hirono 2014/05/09 07:29:38 Why don't you run the test with NOT_IN_GUEST_MODE?
yoshiki 2014/05/09 13:54:17 I think, it should be enough only in NOT_IN_GUEST_
hirono 2014/05/12 02:28:27 Yes, but line 758 is IN_GUEST_MODE. Is it intentio
yoshiki 2014/05/13 09:40:57 Sorry, IN_GUEST_MODE is correct. I think running i
hirono 2014/05/13 10:16:29 I agree with that one mode is enough here. And man
yoshiki 2014/05/13 13:21:38 I don't have a strong opinion and changes it into
760 TestParameter(IN_GUEST_MODE,
761 "createNewFolderDownloads"),
762 TestParameter(NOT_IN_GUEST_MODE,
763 "createNewFolderDownloads"),
764 TestParameter(NOT_IN_GUEST_MODE,
765 "createNewFolderDrive")));
766
767 INSTANTIATE_TEST_CASE_P(
756 KeyboardOperations, 768 KeyboardOperations,
757 FileManagerBrowserTest, 769 FileManagerBrowserTest,
758 ::testing::Values(TestParameter(IN_GUEST_MODE, "keyboardDeleteDownloads"), 770 ::testing::Values(TestParameter(IN_GUEST_MODE, "keyboardDeleteDownloads"),
759 TestParameter(NOT_IN_GUEST_MODE, 771 TestParameter(NOT_IN_GUEST_MODE,
760 "keyboardDeleteDownloads"), 772 "keyboardDeleteDownloads"),
761 TestParameter(NOT_IN_GUEST_MODE, "keyboardDeleteDrive"), 773 TestParameter(NOT_IN_GUEST_MODE, "keyboardDeleteDrive"),
762 TestParameter(IN_GUEST_MODE, "keyboardCopyDownloads"), 774 TestParameter(IN_GUEST_MODE, "keyboardCopyDownloads"),
763 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDownloads"), 775 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDownloads"),
764 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDrive"), 776 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDrive"),
765 TestParameter(IN_GUEST_MODE, 777 TestParameter(IN_GUEST_MODE,
766 "createNewFolderDownloads"),
767 TestParameter(NOT_IN_GUEST_MODE,
768 "createNewFolderDownloads"),
769 TestParameter(NOT_IN_GUEST_MODE,
770 "createNewFolderDrive"),
771 TestParameter(IN_GUEST_MODE,
772 "renameFileDownloads"), 778 "renameFileDownloads"),
773 TestParameter(NOT_IN_GUEST_MODE, 779 TestParameter(NOT_IN_GUEST_MODE,
774 "renameFileDownloads"), 780 "renameFileDownloads"),
775 TestParameter(NOT_IN_GUEST_MODE, 781 TestParameter(NOT_IN_GUEST_MODE,
776 "renameFileDrive"))); 782 "renameFileDrive")));
777 783
778 INSTANTIATE_TEST_CASE_P( 784 INSTANTIATE_TEST_CASE_P(
779 DriveSpecific, 785 DriveSpecific,
780 FileManagerBrowserTest, 786 FileManagerBrowserTest,
781 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "openSidebarRecent"), 787 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "openSidebarRecent"),
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 // (bob and charlie) are added in the test. Thus the existing test verifies 1063 // (bob and charlie) are added in the test. Thus the existing test verifies
1058 // that the feature is effectively working with lastly logged in users. 1064 // that the feature is effectively working with lastly logged in users.
1059 AddExtraUsersForStressTesting(); 1065 AddExtraUsersForStressTesting();
1060 1066
1061 set_test_case_name("multiProfileVisitDesktopMenu"); 1067 set_test_case_name("multiProfileVisitDesktopMenu");
1062 StartTest(); 1068 StartTest();
1063 } 1069 }
1064 1070
1065 } // namespace 1071 } // namespace
1066 } // namespace file_manager 1072 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698