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

Side by Side Diff: chrome/browser/extensions/api/automation/automation_apitest.cc

Issue 2762373002: Fix computation of Automation API location offsets in WebViews. (Closed)
Patch Set: Only run new test on chromeos because of required perms Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/automation_internal/automation_internal_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/automation_internal/automation_internal_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698