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 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1429 return test_case_name_.c_str(); | 1429 return test_case_name_.c_str(); |
1430 } | 1430 } |
1431 | 1431 |
1432 protected: | 1432 protected: |
1433 virtual void SetUp() OVERRIDE { | 1433 virtual void SetUp() OVERRIDE { |
1434 AddScript("common/test_util_common.js"); | 1434 AddScript("common/test_util_common.js"); |
1435 AddScript("video_player/test_util.js"); | 1435 AddScript("video_player/test_util.js"); |
1436 FileManagerBrowserTestBase::SetUp(); | 1436 FileManagerBrowserTestBase::SetUp(); |
1437 } | 1437 } |
1438 | 1438 |
| 1439 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
| 1440 command_line->AppendSwitch( |
| 1441 chromeos::switches::kEnableVideoPlayerChromecastSupport); |
| 1442 FileManagerBrowserTestBase::SetUpCommandLine(command_line); |
| 1443 } |
| 1444 |
1439 virtual std::string OnMessage(const std::string& name, | 1445 virtual std::string OnMessage(const std::string& name, |
1440 const base::Value* value) OVERRIDE; | 1446 const base::Value* value) OVERRIDE; |
1441 | 1447 |
1442 virtual const char* GetTestManifestName() const OVERRIDE { | 1448 virtual const char* GetTestManifestName() const OVERRIDE { |
1443 return "video_player_test_manifest.json"; | 1449 return "video_player_test_manifest.json"; |
1444 } | 1450 } |
1445 | 1451 |
1446 void AddScript(const std::string& name) { | 1452 void AddScript(const std::string& name) { |
1447 scripts_.AppendString( | 1453 scripts_.AppendString( |
1448 "chrome-extension://ljoplibgfehghmibaoaepfagnmbbfiga/" + name); | 1454 "chrome-extension://ljoplibgfehghmibaoaepfagnmbbfiga/" + name); |
(...skipping 30 matching lines...) Expand all Loading... |
1479 } | 1485 } |
1480 | 1486 |
1481 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest, OpenSingleVideoOnDrive) { | 1487 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest, OpenSingleVideoOnDrive) { |
1482 AddScript("video_player/open_video_files.js"); | 1488 AddScript("video_player/open_video_files.js"); |
1483 set_test_case_name("openSingleVideoOnDrive"); | 1489 set_test_case_name("openSingleVideoOnDrive"); |
1484 StartTest(); | 1490 StartTest(); |
1485 } | 1491 } |
1486 | 1492 |
1487 } // namespace | 1493 } // namespace |
1488 } // namespace file_manager | 1494 } // namespace file_manager |
OLD | NEW |