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

Side by Side Diff: chrome/browser/apps/web_view_interactive_browsertest.cc

Issue 552013002: Disable WebViewInteractiveTest.PointerLockFocus which is flaky. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 // About 1 in 40 tests fail to detect mouse moves at this point (why?). 590 // About 1 in 40 tests fail to detect mouse moves at this point (why?).
591 // Sending a right click seems to fix this (why?). 591 // Sending a right click seems to fix this (why?).
592 ExtensionTestMessageListener move_listener2("move-captured", false); 592 ExtensionTestMessageListener move_listener2("move-captured", false);
593 SendMouseClick(ui_controls::RIGHT); 593 SendMouseClick(ui_controls::RIGHT);
594 ASSERT_TRUE(ui_test_utils::SendMouseMoveSync( 594 ASSERT_TRUE(ui_test_utils::SendMouseMoveSync(
595 gfx::Point(corner().x() + 51, corner().y() + 11))); 595 gfx::Point(corner().x() + 51, corner().y() + 11)));
596 ASSERT_TRUE(move_listener2.WaitUntilSatisfied()); 596 ASSERT_TRUE(move_listener2.WaitUntilSatisfied());
597 } 597 }
598 } 598 }
599 599
600 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, PointerLockFocus) { 600 // flaky http://crbug.com/412086
601 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, DISABLED_PointerLockFocus) {
601 SetupTest("web_view/pointer_lock_focus", 602 SetupTest("web_view/pointer_lock_focus",
602 "/extensions/platform_apps/web_view/pointer_lock_focus/guest.html"); 603 "/extensions/platform_apps/web_view/pointer_lock_focus/guest.html");
603 604
604 // Move the mouse over the Lock Pointer button. 605 // Move the mouse over the Lock Pointer button.
605 ASSERT_TRUE(ui_test_utils::SendMouseMoveSync( 606 ASSERT_TRUE(ui_test_utils::SendMouseMoveSync(
606 gfx::Point(corner().x() + 75, corner().y() + 25))); 607 gfx::Point(corner().x() + 75, corner().y() + 25)));
607 608
608 // Click the Lock Pointer button, locking the mouse to lockTarget. 609 // Click the Lock Pointer button, locking the mouse to lockTarget.
609 // This will also change focus to another element 610 // This will also change focus to another element
610 SendMouseClickWithListener(ui_controls::LEFT, "locked"); 611 SendMouseClickWithListener(ui_controls::LEFT, "locked");
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 1107
1107 // Now verify that the selection text propagates properly to RWHV. 1108 // Now verify that the selection text propagates properly to RWHV.
1108 content::RenderWidgetHostView* guest_rwhv = 1109 content::RenderWidgetHostView* guest_rwhv =
1109 guest_web_contents()->GetRenderWidgetHostView(); 1110 guest_web_contents()->GetRenderWidgetHostView();
1110 ASSERT_TRUE(guest_rwhv); 1111 ASSERT_TRUE(guest_rwhv);
1111 std::string selected_text = base::UTF16ToUTF8(guest_rwhv->GetSelectedText()); 1112 std::string selected_text = base::UTF16ToUTF8(guest_rwhv->GetSelectedText());
1112 ASSERT_TRUE(selected_text.size() >= 10u); 1113 ASSERT_TRUE(selected_text.size() >= 10u);
1113 ASSERT_EQ("AAAAAAAAAA", selected_text.substr(0, 10)); 1114 ASSERT_EQ("AAAAAAAAAA", selected_text.substr(0, 10));
1114 } 1115 }
1115 #endif 1116 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698