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 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 INSTANTIATE_TEST_CASE_P( | 720 INSTANTIATE_TEST_CASE_P( |
721 FileDisplay, | 721 FileDisplay, |
722 FileManagerBrowserTest, | 722 FileManagerBrowserTest, |
723 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "fileDisplayDownloads"), | 723 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "fileDisplayDownloads"), |
724 TestParameter(IN_GUEST_MODE, "fileDisplayDownloads"), | 724 TestParameter(IN_GUEST_MODE, "fileDisplayDownloads"), |
725 TestParameter(NOT_IN_GUEST_MODE, "fileDisplayDrive"))); | 725 TestParameter(NOT_IN_GUEST_MODE, "fileDisplayDrive"))); |
726 | 726 |
727 INSTANTIATE_TEST_CASE_P( | 727 INSTANTIATE_TEST_CASE_P( |
728 OpenSpecialTypes, | 728 OpenSpecialTypes, |
729 FileManagerBrowserTest, | 729 FileManagerBrowserTest, |
730 ::testing::Values(TestParameter(IN_GUEST_MODE, "audioOpenDownloads"), | 730 ::testing::Values(TestParameter(IN_GUEST_MODE, "galleryOpenDownloads"), |
731 TestParameter(NOT_IN_GUEST_MODE, "audioOpenDownloads"), | |
732 TestParameter(NOT_IN_GUEST_MODE, "audioOpenDrive"), | |
733 TestParameter(IN_GUEST_MODE, "galleryOpenDownloads"), | |
734 TestParameter(NOT_IN_GUEST_MODE, "galleryOpenDownloads"), | 731 TestParameter(NOT_IN_GUEST_MODE, "galleryOpenDownloads"), |
735 TestParameter(NOT_IN_GUEST_MODE, "galleryOpenDrive"), | 732 TestParameter(NOT_IN_GUEST_MODE, "galleryOpenDrive"), |
736 TestParameter(IN_GUEST_MODE, "zipOpenDownloads"), | 733 TestParameter(IN_GUEST_MODE, "zipOpenDownloads"), |
737 TestParameter(NOT_IN_GUEST_MODE, "zipOpenDownloads"))); | 734 TestParameter(NOT_IN_GUEST_MODE, "zipOpenDownloads"))); |
738 // http://crbug.com/348008 | 735 // http://crbug.com/348008 |
739 // DISABLED TestParameter(NOT_IN_GUEST_MODE, "zipOpenDrive"))); | 736 // DISABLED TestParameter(NOT_IN_GUEST_MODE, "zipOpenDrive"))); |
740 | 737 |
741 INSTANTIATE_TEST_CASE_P( | 738 INSTANTIATE_TEST_CASE_P( |
| 739 OpenAudioFiles, |
| 740 FileManagerBrowserTest, |
| 741 ::testing::Values(TestParameter(IN_GUEST_MODE, "audioOpenDownloads"), |
| 742 TestParameter(NOT_IN_GUEST_MODE, "audioOpenDownloads"), |
| 743 TestParameter(NOT_IN_GUEST_MODE, "audioOpenDrive"))); |
| 744 |
| 745 INSTANTIATE_TEST_CASE_P( |
742 KeyboardOperations, | 746 KeyboardOperations, |
743 FileManagerBrowserTest, | 747 FileManagerBrowserTest, |
744 ::testing::Values(TestParameter(IN_GUEST_MODE, "keyboardDeleteDownloads"), | 748 ::testing::Values(TestParameter(IN_GUEST_MODE, "keyboardDeleteDownloads"), |
745 TestParameter(NOT_IN_GUEST_MODE, | 749 TestParameter(NOT_IN_GUEST_MODE, |
746 "keyboardDeleteDownloads"), | 750 "keyboardDeleteDownloads"), |
747 TestParameter(NOT_IN_GUEST_MODE, "keyboardDeleteDrive"), | 751 TestParameter(NOT_IN_GUEST_MODE, "keyboardDeleteDrive"), |
748 TestParameter(IN_GUEST_MODE, "keyboardCopyDownloads"), | 752 TestParameter(IN_GUEST_MODE, "keyboardCopyDownloads"), |
749 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDownloads"), | 753 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDownloads"), |
750 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDrive"))); | 754 TestParameter(NOT_IN_GUEST_MODE, "keyboardCopyDrive"))); |
751 | 755 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 // (bob and charlie) are added in the test. Thus the existing test verifies | 1044 // (bob and charlie) are added in the test. Thus the existing test verifies |
1041 // that the feature is effectively working with lastly logged in users. | 1045 // that the feature is effectively working with lastly logged in users. |
1042 AddExtraUsersForStressTesting(); | 1046 AddExtraUsersForStressTesting(); |
1043 | 1047 |
1044 set_test_case_name("multiProfileVisitDesktopMenu"); | 1048 set_test_case_name("multiProfileVisitDesktopMenu"); |
1045 StartTest(); | 1049 StartTest(); |
1046 } | 1050 } |
1047 | 1051 |
1048 } // namespace | 1052 } // namespace |
1049 } // namespace file_manager | 1053 } // namespace file_manager |
OLD | NEW |