OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "base/location.h" | 6 #include "base/location.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopFocusViews) { | 203 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopFocusViews) { |
204 AutomationManagerAura::GetInstance()->Enable(browser()->profile()); | 204 AutomationManagerAura::GetInstance()->Enable(browser()->profile()); |
205 // Trigger the shelf subtree to be computed. | 205 // Trigger the shelf subtree to be computed. |
206 ash::Shell::Get()->accelerator_controller()->PerformActionIfEnabled( | 206 ash::Shell::Get()->accelerator_controller()->PerformActionIfEnabled( |
207 ash::FOCUS_SHELF); | 207 ash::FOCUS_SHELF); |
208 | 208 |
209 ASSERT_TRUE( | 209 ASSERT_TRUE( |
210 RunExtensionSubtest("automation/tests/desktop", "focus_views.html")) | 210 RunExtensionSubtest("automation/tests/desktop", "focus_views.html")) |
211 << message_; | 211 << message_; |
212 } | 212 } |
| 213 |
| 214 IN_PROC_BROWSER_TEST_F(AutomationApiTest, LocationInWebView) { |
| 215 StartEmbeddedTestServer(); |
| 216 ASSERT_TRUE(RunPlatformAppTest("automation/tests/webview")) << message_; |
| 217 } |
213 #endif | 218 #endif |
214 | 219 |
215 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopNotRequested) { | 220 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopNotRequested) { |
216 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", | 221 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", |
217 "desktop_not_requested.html")) << message_; | 222 "desktop_not_requested.html")) << message_; |
218 } | 223 } |
219 | 224 |
220 #if defined(OS_CHROMEOS) | 225 #if defined(OS_CHROMEOS) |
221 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopActions) { | 226 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopActions) { |
222 AutomationManagerAura::GetInstance()->Enable(browser()->profile()); | 227 AutomationManagerAura::GetInstance()->Enable(browser()->profile()); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 << message_; | 285 << message_; |
281 } | 286 } |
282 | 287 |
283 IN_PROC_BROWSER_TEST_F(AutomationApiTest, HitTest) { | 288 IN_PROC_BROWSER_TEST_F(AutomationApiTest, HitTest) { |
284 StartEmbeddedTestServer(); | 289 StartEmbeddedTestServer(); |
285 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "hit_test.html")) | 290 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "hit_test.html")) |
286 << message_; | 291 << message_; |
287 } | 292 } |
288 | 293 |
289 } // namespace extensions | 294 } // namespace extensions |
OLD | NEW |