Chromium Code Reviews| 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 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 894 FileManagerBrowserTest, | 894 FileManagerBrowserTest, |
| 895 ::testing::Values( | 895 ::testing::Values( |
| 896 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDrive"))); | 896 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDrive"))); |
| 897 | 897 |
| 898 INSTANTIATE_TEST_CASE_P( | 898 INSTANTIATE_TEST_CASE_P( |
| 899 NavigationList, | 899 NavigationList, |
| 900 FileManagerBrowserTest, | 900 FileManagerBrowserTest, |
| 901 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, | 901 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, |
| 902 "traverseNavigationList"))); | 902 "traverseNavigationList"))); |
| 903 | 903 |
| 904 // This macro expands prefix before it is concatenated with test_case_name. | |
| 905 #define WRAPPED_INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator) \ | |
|
fukino
2014/06/05 11:27:38
MAYBE_FolderShortcuts was not expanded because INS
yoshiki
2014/06/05 15:11:23
nit: Please write it in the comment. The detailed
fukino
2014/06/06 02:15:24
I agree! It wasn't good idea to make the comment o
| |
| 906 INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator) | |
| 907 | |
| 908 // This test is too slow to run in debug build. http://crbug.com/327719 | |
| 909 #if !defined(NDEBUG) | |
| 910 #define MAYBE_FolderShortcuts DISABLED_FolderShortcuts | |
| 911 #else | |
| 912 #define MAYBE_FolderShortcuts FolderShortcuts | |
| 913 #endif | |
| 914 WRAPPED_INSTANTIATE_TEST_CASE_P( | |
| 915 MAYBE_FolderShortcuts, | |
| 916 FileManagerBrowserTest, | |
| 917 ::testing::Values( | |
| 918 TestParameter(NOT_IN_GUEST_MODE, "traverseFolderShortcuts"), | |
| 919 TestParameter(NOT_IN_GUEST_MODE, "addRemoveFolderShortcuts"))); | |
| 920 | |
| 904 INSTANTIATE_TEST_CASE_P( | 921 INSTANTIATE_TEST_CASE_P( |
| 905 TabIndex, | 922 TabIndex, |
| 906 FileManagerBrowserTest, | 923 FileManagerBrowserTest, |
| 907 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "searchBoxFocus"))); | 924 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "searchBoxFocus"))); |
| 908 | 925 |
| 909 INSTANTIATE_TEST_CASE_P( | 926 INSTANTIATE_TEST_CASE_P( |
| 910 Thumbnails, | 927 Thumbnails, |
| 911 FileManagerBrowserTest, | 928 FileManagerBrowserTest, |
| 912 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "thumbnailsDownloads"), | 929 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "thumbnailsDownloads"), |
| 913 TestParameter(IN_GUEST_MODE, "thumbnailsDownloads"))); | 930 TestParameter(IN_GUEST_MODE, "thumbnailsDownloads"))); |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1136 } | 1153 } |
| 1137 | 1154 |
| 1138 IN_PROC_BROWSER_TEST_F(GalleryBrowserTest, OpenSingleImageOnDrive) { | 1155 IN_PROC_BROWSER_TEST_F(GalleryBrowserTest, OpenSingleImageOnDrive) { |
| 1139 AddScript("gallery/open_image_files.js"); | 1156 AddScript("gallery/open_image_files.js"); |
| 1140 set_test_case_name("openSingleImageOnDrive"); | 1157 set_test_case_name("openSingleImageOnDrive"); |
| 1141 StartTest(); | 1158 StartTest(); |
| 1142 } | 1159 } |
| 1143 | 1160 |
| 1144 } // namespace | 1161 } // namespace |
| 1145 } // namespace file_manager | 1162 } // namespace file_manager |
| OLD | NEW |