OLD | NEW |
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 Loading... |
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(NOT_IN_GUEST_MODE, |
| 759 "createNewFolderAfterSelectFile"), |
| 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 // Disabled due to frequent timeouts; http://crbug.com/370980. | 784 // Disabled due to frequent timeouts; http://crbug.com/370980. |
779 INSTANTIATE_TEST_CASE_P( | 785 INSTANTIATE_TEST_CASE_P( |
780 DISABLED_DriveSpecific, | 786 DISABLED_DriveSpecific, |
781 FileManagerBrowserTest, | 787 FileManagerBrowserTest, |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 // (bob and charlie) are added in the test. Thus the existing test verifies | 1064 // (bob and charlie) are added in the test. Thus the existing test verifies |
1059 // that the feature is effectively working with lastly logged in users. | 1065 // that the feature is effectively working with lastly logged in users. |
1060 AddExtraUsersForStressTesting(); | 1066 AddExtraUsersForStressTesting(); |
1061 | 1067 |
1062 set_test_case_name("multiProfileVisitDesktopMenu"); | 1068 set_test_case_name("multiProfileVisitDesktopMenu"); |
1063 StartTest(); | 1069 StartTest(); |
1064 } | 1070 } |
1065 | 1071 |
1066 } // namespace | 1072 } // namespace |
1067 } // namespace file_manager | 1073 } // namespace file_manager |
OLD | NEW |