Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Side by Side Diff: chrome/browser/chromeos/file_manager/file_manager_browsertest.cc

Issue 331583003: Files.app: Add a test to open a file dialog box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 956 // Slow tests are disabled on debug build. http://crbug.com/327719
957 #if !defined(NDEBUG) 957 #if !defined(NDEBUG)
958 #define MAYBE_ExecuteDefaultTaskOnDrive DISABLED_ExecuteDefaultTaskOnDrive 958 #define MAYBE_ExecuteDefaultTaskOnDrive DISABLED_ExecuteDefaultTaskOnDrive
959 #else 959 #else
960 #define MAYBE_ExecuteDefaultTaskOnDrive ExecuteDefaultTaskOnDrive 960 #define MAYBE_ExecuteDefaultTaskOnDrive ExecuteDefaultTaskOnDrive
961 #endif 961 #endif
962 INSTANTIATE_TEST_CASE_P( 962 INSTANTIATE_TEST_CASE_P(
963 ExecuteDefaultTaskOnDrive, 963 MAYBE_ExecuteDefaultTaskOnDrive,
fukino 2014/06/17 05:59:10 Wow! Thank you for catching this.
964 FileManagerBrowserTest, 964 FileManagerBrowserTest,
965 ::testing::Values( 965 ::testing::Values(
966 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDrive"))); 966 TestParameter(NOT_IN_GUEST_MODE, "executeDefaultTaskOnDrive")));
967 967
968 // Slow tests are disabled on debug build. http://crbug.com/327719 968 // Slow tests are disabled on debug build. http://crbug.com/327719
969 #if !defined(NDEBUG) 969 #if !defined(NDEBUG)
970 #define MAYBE_DefaultActionDialog DISABLED_DefaultActionDialog 970 #define MAYBE_DefaultActionDialog DISABLED_DefaultActionDialog
971 #else 971 #else
972 #define MAYBE_DefaultActionDialog DefaultActionDialog 972 #define MAYBE_DefaultActionDialog DefaultActionDialog
973 #endif 973 #endif
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 #define MAYBE_Thumbnails DISABLED_Thumbnails 1014 #define MAYBE_Thumbnails DISABLED_Thumbnails
1015 #else 1015 #else
1016 #define MAYBE_Thumbnails Thumbnails 1016 #define MAYBE_Thumbnails Thumbnails
1017 #endif 1017 #endif
1018 WRAPPED_INSTANTIATE_TEST_CASE_P( 1018 WRAPPED_INSTANTIATE_TEST_CASE_P(
1019 MAYBE_Thumbnails, 1019 MAYBE_Thumbnails,
1020 FileManagerBrowserTest, 1020 FileManagerBrowserTest,
1021 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "thumbnailsDownloads"), 1021 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "thumbnailsDownloads"),
1022 TestParameter(IN_GUEST_MODE, "thumbnailsDownloads"))); 1022 TestParameter(IN_GUEST_MODE, "thumbnailsDownloads")));
1023 1023
1024 // Slow tests are disabled on debug build. http://crbug.com/327719
1025 #if !defined(NDEBUG)
1026 #define MAYBE_OpenFileDialog DISABLED_OpenFileDialog
1027 #else
1028 #define MAYBE_OpenFileDialog OpenFileDialog
1029 #endif
1030 WRAPPED_INSTANTIATE_TEST_CASE_P(
1031 MAYBE_OpenFileDialog,
1032 FileManagerBrowserTest,
1033 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE,
1034 "openFileDialogOnDownloads"),
1035 TestParameter(IN_GUEST_MODE,
1036 "openFileDialogOnDownloads"),
1037 TestParameter(NOT_IN_GUEST_MODE,
1038 "openFileDialogOnDrive")));
1039
1024 // Test/4 has been failing every 3rd or 4th pass on the waterfall for 1040 // Test/4 has been failing every 3rd or 4th pass on the waterfall for
1025 // "Linux ChromiumOS Tests (dbg)". 1041 // "Linux ChromiumOS Tests (dbg)".
1026 // http://crbug.com/380339 1042 // http://crbug.com/380339
1027 INSTANTIATE_TEST_CASE_P( 1043 INSTANTIATE_TEST_CASE_P(
1028 DISABLED_CopyBetweenWindows, 1044 DISABLED_CopyBetweenWindows,
1029 FileManagerBrowserTest, 1045 FileManagerBrowserTest,
1030 ::testing::Values( 1046 ::testing::Values(
1031 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsLocalToDrive"), 1047 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsLocalToDrive"),
1032 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsLocalToUsb"), 1048 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsLocalToUsb"),
1033 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsUsbToDrive"), 1049 TestParameter(NOT_IN_GUEST_MODE, "copyBetweenWindowsUsbToDrive"),
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1394 } 1410 }
1395 1411
1396 IN_PROC_BROWSER_TEST_F(GalleryBrowserTest, RotateImageOnDrive) { 1412 IN_PROC_BROWSER_TEST_F(GalleryBrowserTest, RotateImageOnDrive) {
1397 AddScript("gallery/photo_editor.js"); 1413 AddScript("gallery/photo_editor.js");
1398 set_test_case_name("rotateImageOnDrive"); 1414 set_test_case_name("rotateImageOnDrive");
1399 StartTest(); 1415 StartTest();
1400 } 1416 }
1401 1417
1402 } // namespace 1418 } // namespace
1403 } // namespace file_manager 1419 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698