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 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDownloads"), | 958 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDownloads"), |
959 TestParameter(IN_GUEST_MODE, "executeDefaultTaskOnDownloads"))); | 959 TestParameter(IN_GUEST_MODE, "executeDefaultTaskOnDownloads"))); |
960 | 960 |
961 // Slow tests are disabled on debug build. http://crbug.com/327719 | 961 // Slow tests are disabled on debug build. http://crbug.com/327719 |
962 #if !defined(NDEBUG) | 962 #if !defined(NDEBUG) |
963 #define MAYBE_ExecuteDefaultTaskOnDrive DISABLED_ExecuteDefaultTaskOnDrive | 963 #define MAYBE_ExecuteDefaultTaskOnDrive DISABLED_ExecuteDefaultTaskOnDrive |
964 #else | 964 #else |
965 #define MAYBE_ExecuteDefaultTaskOnDrive ExecuteDefaultTaskOnDrive | 965 #define MAYBE_ExecuteDefaultTaskOnDrive ExecuteDefaultTaskOnDrive |
966 #endif | 966 #endif |
967 INSTANTIATE_TEST_CASE_P( | 967 INSTANTIATE_TEST_CASE_P( |
968 ExecuteDefaultTaskOnDrive, | 968 MAYBE_ExecuteDefaultTaskOnDrive, |
969 FileManagerBrowserTest, | 969 FileManagerBrowserTest, |
970 ::testing::Values( | 970 ::testing::Values( |
971 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDrive"))); | 971 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDrive"))); |
972 | 972 |
973 // Slow tests are disabled on debug build. http://crbug.com/327719 | 973 // Slow tests are disabled on debug build. http://crbug.com/327719 |
974 #if !defined(NDEBUG) | 974 #if !defined(NDEBUG) |
975 #define MAYBE_DefaultActionDialog DISABLED_DefaultActionDialog | 975 #define MAYBE_DefaultActionDialog DISABLED_DefaultActionDialog |
976 #else | 976 #else |
977 #define MAYBE_DefaultActionDialog DefaultActionDialog | 977 #define MAYBE_DefaultActionDialog DefaultActionDialog |
978 #endif | 978 #endif |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 #define MAYBE_Thumbnails DISABLED_Thumbnails | 1019 #define MAYBE_Thumbnails DISABLED_Thumbnails |
1020 #else | 1020 #else |
1021 #define MAYBE_Thumbnails Thumbnails | 1021 #define MAYBE_Thumbnails Thumbnails |
1022 #endif | 1022 #endif |
1023 WRAPPED_INSTANTIATE_TEST_CASE_P( | 1023 WRAPPED_INSTANTIATE_TEST_CASE_P( |
1024 MAYBE_Thumbnails, | 1024 MAYBE_Thumbnails, |
1025 FileManagerBrowserTest, | 1025 FileManagerBrowserTest, |
1026 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "thumbnailsDownloads"), | 1026 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "thumbnailsDownloads"), |
1027 TestParameter(IN_GUEST_MODE, "thumbnailsDownloads"))); | 1027 TestParameter(IN_GUEST_MODE, "thumbnailsDownloads"))); |
1028 | 1028 |
| 1029 #if !defined(NDEBUG) |
| 1030 #define MAYBE_OpenFileDialog DISABLED_OpenFileDialog |
| 1031 #else |
| 1032 #define MAYBE_OpenFileDialog OpenFileDialog |
| 1033 #endif |
| 1034 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 1035 MAYBE_OpenFileDialog, |
| 1036 FileManagerBrowserTest, |
| 1037 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, |
| 1038 "openFileDialogOnDownloads"), |
| 1039 TestParameter(IN_GUEST_MODE, |
| 1040 "openFileDialogOnDownloads"), |
| 1041 TestParameter(NOT_IN_GUEST_MODE, |
| 1042 "openFileDialogOnDrive"))); |
| 1043 |
1029 // Slow tests are disabled on debug build. http://crbug.com/327719 | 1044 // Slow tests are disabled on debug build. http://crbug.com/327719 |
1030 #if !defined(NDEBUG) | 1045 #if !defined(NDEBUG) |
1031 #define MAYBE_CopyBetweenWindows DISABLED_CopyBetweenWindows | 1046 #define MAYBE_CopyBetweenWindows DISABLED_CopyBetweenWindows |
1032 #else | 1047 #else |
1033 #define MAYBE_CopyBetweenWindows CopyBetweenWindows | 1048 #define MAYBE_CopyBetweenWindows CopyBetweenWindows |
1034 #endif | 1049 #endif |
1035 WRAPPED_INSTANTIATE_TEST_CASE_P( | 1050 WRAPPED_INSTANTIATE_TEST_CASE_P( |
1036 MAYBE_CopyBetweenWindows, | 1051 MAYBE_CopyBetweenWindows, |
1037 FileManagerBrowserTest, | 1052 FileManagerBrowserTest, |
1038 ::testing::Values( | 1053 ::testing::Values( |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 } | 1417 } |
1403 | 1418 |
1404 IN_PROC_BROWSER_TEST_F(GalleryBrowserTest, RotateImageOnDrive) { | 1419 IN_PROC_BROWSER_TEST_F(GalleryBrowserTest, RotateImageOnDrive) { |
1405 AddScript("gallery/photo_editor.js"); | 1420 AddScript("gallery/photo_editor.js"); |
1406 set_test_case_name("rotateImageOnDrive"); | 1421 set_test_case_name("rotateImageOnDrive"); |
1407 StartTest(); | 1422 StartTest(); |
1408 } | 1423 } |
1409 | 1424 |
1410 } // namespace | 1425 } // namespace |
1411 } // namespace file_manager | 1426 } // namespace file_manager |
OLD | NEW |