| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include <queue> | 5 #include <queue> |
| 6 #include <set> | 6 #include <set> |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1968 | 1968 |
| 1969 // Checks that window.screenX/screenY/screenLeft/screenTop works correctly for | 1969 // Checks that window.screenX/screenY/screenLeft/screenTop works correctly for |
| 1970 // guests. | 1970 // guests. |
| 1971 IN_PROC_BROWSER_TEST_P(WebViewTest, ScreenCoordinates) { | 1971 IN_PROC_BROWSER_TEST_P(WebViewTest, ScreenCoordinates) { |
| 1972 ASSERT_TRUE(RunPlatformAppTestWithArg( | 1972 ASSERT_TRUE(RunPlatformAppTestWithArg( |
| 1973 "platform_apps/web_view/common", "screen_coordinates")) | 1973 "platform_apps/web_view/common", "screen_coordinates")) |
| 1974 << message_; | 1974 << message_; |
| 1975 } | 1975 } |
| 1976 | 1976 |
| 1977 #if defined(OS_CHROMEOS) | 1977 #if defined(OS_CHROMEOS) |
| 1978 IN_PROC_BROWSER_TEST_P(WebViewTest, ChromeVoxInjection) { | 1978 // Flaky, see http://crbug.com/611736. |
| 1979 IN_PROC_BROWSER_TEST_P(WebViewTest, DISABLED_ChromeVoxInjection) { |
| 1979 EXPECT_FALSE( | 1980 EXPECT_FALSE( |
| 1980 chromeos::AccessibilityManager::Get()->IsSpokenFeedbackEnabled()); | 1981 chromeos::AccessibilityManager::Get()->IsSpokenFeedbackEnabled()); |
| 1981 | 1982 |
| 1982 chromeos::SpeechMonitor monitor; | 1983 chromeos::SpeechMonitor monitor; |
| 1983 chromeos::AccessibilityManager::Get()->EnableSpokenFeedback( | 1984 chromeos::AccessibilityManager::Get()->EnableSpokenFeedback( |
| 1984 true, ui::A11Y_NOTIFICATION_NONE); | 1985 true, ui::A11Y_NOTIFICATION_NONE); |
| 1985 EXPECT_TRUE(monitor.SkipChromeVoxEnabledMessage()); | 1986 EXPECT_TRUE(monitor.SkipChromeVoxEnabledMessage()); |
| 1986 | 1987 |
| 1987 ASSERT_TRUE(StartEmbeddedTestServer()); | 1988 ASSERT_TRUE(StartEmbeddedTestServer()); |
| 1988 content::WebContents* guest_web_contents = LoadGuest( | 1989 content::WebContents* guest_web_contents = LoadGuest( |
| (...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3352 gfx::Point embedder_origin = | 3353 gfx::Point embedder_origin = |
| 3353 GetEmbedderWebContents()->GetContainerBounds().origin(); | 3354 GetEmbedderWebContents()->GetContainerBounds().origin(); |
| 3354 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y()); | 3355 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y()); |
| 3355 | 3356 |
| 3356 // Generate and send synthetic touch event. | 3357 // Generate and send synthetic touch event. |
| 3357 content::SimulateTouchPressAt(GetEmbedderWebContents(), | 3358 content::SimulateTouchPressAt(GetEmbedderWebContents(), |
| 3358 guest_rect.CenterPoint()); | 3359 guest_rect.CenterPoint()); |
| 3359 EXPECT_TRUE(aura_webview->HasFocus()); | 3360 EXPECT_TRUE(aura_webview->HasFocus()); |
| 3360 } | 3361 } |
| 3361 #endif | 3362 #endif |
| OLD | NEW |