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 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 #else | 946 #else |
947 #define MAYBE_ExecuteDefaultTaskOnDownloads ExecuteDefaultTaskOnDownloads | 947 #define MAYBE_ExecuteDefaultTaskOnDownloads ExecuteDefaultTaskOnDownloads |
948 #endif | 948 #endif |
949 WRAPPED_INSTANTIATE_TEST_CASE_P( | 949 WRAPPED_INSTANTIATE_TEST_CASE_P( |
950 MAYBE_ExecuteDefaultTaskOnDownloads, | 950 MAYBE_ExecuteDefaultTaskOnDownloads, |
951 FileManagerBrowserTest, | 951 FileManagerBrowserTest, |
952 ::testing::Values( | 952 ::testing::Values( |
953 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDownloads"), | 953 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDownloads"), |
954 TestParameter(IN_GUEST_MODE, "executeDefaultTaskOnDownloads"))); | 954 TestParameter(IN_GUEST_MODE, "executeDefaultTaskOnDownloads"))); |
955 | 955 |
| 956 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 957 #if !defined(NDEBUG) |
| 958 #define MAYBE_ExecuteDefaultTaskOnDrive DISABLED_ExecuteDefaultTaskOnDrive |
| 959 #else |
| 960 #define MAYBE_ExecuteDefaultTaskOnDrive ExecuteDefaultTaskOnDrive |
| 961 #endif |
956 INSTANTIATE_TEST_CASE_P( | 962 INSTANTIATE_TEST_CASE_P( |
957 ExecuteDefaultTaskOnDrive, | 963 ExecuteDefaultTaskOnDrive, |
958 FileManagerBrowserTest, | 964 FileManagerBrowserTest, |
959 ::testing::Values( | 965 ::testing::Values( |
960 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDrive"))); | 966 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDrive"))); |
961 | 967 |
962 // Slow tests are disabled on debug build. http://crbug.com/327719 | 968 // Slow tests are disabled on debug build. http://crbug.com/327719 |
963 #if !defined(NDEBUG) | 969 #if !defined(NDEBUG) |
| 970 #define MAYBE_DefaultActionDialog DISABLED_DefaultActionDialog |
| 971 #else |
| 972 #define MAYBE_DefaultActionDialog DefaultActionDialog |
| 973 #endif |
| 974 WRAPPED_INSTANTIATE_TEST_CASE_P( |
| 975 MAYBE_DefaultActionDialog, |
| 976 FileManagerBrowserTest, |
| 977 ::testing::Values( |
| 978 TestParameter(NOT_IN_GUEST_MODE, "defaultActionDialogOnDownloads"), |
| 979 TestParameter(IN_GUEST_MODE, "defaultActionDialogOnDownloads"), |
| 980 TestParameter(NOT_IN_GUEST_MODE, "defaultActionDialogOnDrive"))); |
| 981 |
| 982 // Slow tests are disabled on debug build. http://crbug.com/327719 |
| 983 #if !defined(NDEBUG) |
964 #define MAYBE_NavigationList DISABLED_NavigationList | 984 #define MAYBE_NavigationList DISABLED_NavigationList |
965 #else | 985 #else |
966 #define MAYBE_NavigationList NavigationList | 986 #define MAYBE_NavigationList NavigationList |
967 #endif | 987 #endif |
968 WRAPPED_INSTANTIATE_TEST_CASE_P( | 988 WRAPPED_INSTANTIATE_TEST_CASE_P( |
969 MAYBE_NavigationList, | 989 MAYBE_NavigationList, |
970 FileManagerBrowserTest, | 990 FileManagerBrowserTest, |
971 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, | 991 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, |
972 "traverseNavigationList"))); | 992 "traverseNavigationList"))); |
973 | 993 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1355 } | 1375 } |
1356 | 1376 |
1357 IN_PROC_BROWSER_TEST_F(GalleryBrowserTest, DeleteImageOnDrive) { | 1377 IN_PROC_BROWSER_TEST_F(GalleryBrowserTest, DeleteImageOnDrive) { |
1358 AddScript("gallery/slide_mode.js"); | 1378 AddScript("gallery/slide_mode.js"); |
1359 set_test_case_name("deleteImageOnDrive"); | 1379 set_test_case_name("deleteImageOnDrive"); |
1360 StartTest(); | 1380 StartTest(); |
1361 } | 1381 } |
1362 | 1382 |
1363 } // namespace | 1383 } // namespace |
1364 } // namespace file_manager | 1384 } // namespace file_manager |
OLD | NEW |