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 "base/strings/stringprintf.h" | 5 #include "base/strings/stringprintf.h" |
6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
7 #include "chrome/app/chrome_command_ids.h" | 7 #include "chrome/app/chrome_command_ids.h" |
8 #include "chrome/browser/apps/app_browsertest_util.h" | 8 #include "chrome/browser/apps/app_browsertest_util.h" |
9 #include "chrome/browser/chrome_content_browser_client.h" | 9 #include "chrome/browser/chrome_content_browser_client.h" |
10 #include "chrome/browser/extensions/extension_test_message_listener.h" | 10 #include "chrome/browser/extensions/extension_test_message_listener.h" |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 | 543 |
544 // ui_test_utils::SendMouseMoveSync doesn't seem to work on OS_MACOSX, and | 544 // ui_test_utils::SendMouseMoveSync doesn't seem to work on OS_MACOSX, and |
545 // likely won't work on many other platforms as well, so for now this test | 545 // likely won't work on many other platforms as well, so for now this test |
546 // is for Windows and Linux only. As of Sept 17th, 2013 this test is disabled | 546 // is for Windows and Linux only. As of Sept 17th, 2013 this test is disabled |
547 // on Windows due to flakines, see http://crbug.com/293445. | 547 // on Windows due to flakines, see http://crbug.com/293445. |
548 | 548 |
549 // Disabled on Linux Aura because pointer lock does not work on Linux Aura. | 549 // Disabled on Linux Aura because pointer lock does not work on Linux Aura. |
550 // crbug.com/341876 | 550 // crbug.com/341876 |
551 | 551 |
552 #if defined(OS_LINUX) | 552 #if defined(OS_LINUX) |
553 | 553 // flaky http://crbug.com/412086 |
554 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, PointerLock) { | 554 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, DISABLED_PointerLock) { |
555 SetupTest("web_view/pointer_lock", | 555 SetupTest("web_view/pointer_lock", |
556 "/extensions/platform_apps/web_view/pointer_lock/guest.html"); | 556 "/extensions/platform_apps/web_view/pointer_lock/guest.html"); |
557 | 557 |
558 // Move the mouse over the Lock Pointer button. | 558 // Move the mouse over the Lock Pointer button. |
559 ASSERT_TRUE(ui_test_utils::SendMouseMoveSync( | 559 ASSERT_TRUE(ui_test_utils::SendMouseMoveSync( |
560 gfx::Point(corner().x() + 75, corner().y() + 25))); | 560 gfx::Point(corner().x() + 75, corner().y() + 25))); |
561 | 561 |
562 // Click the Lock Pointer button. The first two times the button is clicked | 562 // Click the Lock Pointer button. The first two times the button is clicked |
563 // the permission API will deny the request (intentional). | 563 // the permission API will deny the request (intentional). |
564 ExtensionTestMessageListener exception_listener("request exception", false); | 564 ExtensionTestMessageListener exception_listener("request exception", false); |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1160 | 1160 |
1161 // Now verify that the selection text propagates properly to RWHV. | 1161 // Now verify that the selection text propagates properly to RWHV. |
1162 content::RenderWidgetHostView* guest_rwhv = | 1162 content::RenderWidgetHostView* guest_rwhv = |
1163 guest_web_contents()->GetRenderWidgetHostView(); | 1163 guest_web_contents()->GetRenderWidgetHostView(); |
1164 ASSERT_TRUE(guest_rwhv); | 1164 ASSERT_TRUE(guest_rwhv); |
1165 std::string selected_text = base::UTF16ToUTF8(guest_rwhv->GetSelectedText()); | 1165 std::string selected_text = base::UTF16ToUTF8(guest_rwhv->GetSelectedText()); |
1166 ASSERT_TRUE(selected_text.size() >= 10u); | 1166 ASSERT_TRUE(selected_text.size() >= 10u); |
1167 ASSERT_EQ("AAAAAAAAAA", selected_text.substr(0, 10)); | 1167 ASSERT_EQ("AAAAAAAAAA", selected_text.substr(0, 10)); |
1168 } | 1168 } |
1169 #endif | 1169 #endif |
OLD | NEW |