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

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

Issue 2801943004: Disable WebViewInteractiveTest.KeyboardFocusSimple on Linux (Closed)
Patch Set: 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 | 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 } 1421 }
1422 ExtensionTestMessageListener webview_button_not_focused_listener( 1422 ExtensionTestMessageListener webview_button_not_focused_listener(
1423 "WebViewInteractiveTest.WebViewButtonWasNotFocused", false); 1423 "WebViewInteractiveTest.WebViewButtonWasNotFocused", false);
1424 webview_button_not_focused_listener.set_failure_message( 1424 webview_button_not_focused_listener.set_failure_message(
1425 "WebViewInteractiveTest.WebViewButtonWasFocused"); 1425 "WebViewInteractiveTest.WebViewButtonWasFocused");
1426 SendMessageToEmbedder("verify"); 1426 SendMessageToEmbedder("verify");
1427 EXPECT_TRUE(webview_button_not_focused_listener.WaitUntilSatisfied()); 1427 EXPECT_TRUE(webview_button_not_focused_listener.WaitUntilSatisfied());
1428 } 1428 }
1429 1429
1430 IN_PROC_BROWSER_TEST_P(WebViewInteractiveTest, KeyboardFocusSimple) { 1430 IN_PROC_BROWSER_TEST_P(WebViewInteractiveTest, KeyboardFocusSimple) {
1431 #if defined(OS_LINUX)
1432 // Flaky timeouts on Linux. https://crbug.com/709202
1433 if (GetParam())
1434 return;
1435 #endif // defined(OS_LINUX)
1431 TestHelper("testKeyboardFocusSimple", "web_view/focus", NO_TEST_SERVER); 1436 TestHelper("testKeyboardFocusSimple", "web_view/focus", NO_TEST_SERVER);
1432 1437
1433 EXPECT_EQ(embedder_web_contents()->GetFocusedFrame(), 1438 EXPECT_EQ(embedder_web_contents()->GetFocusedFrame(),
1434 embedder_web_contents()->GetMainFrame()); 1439 embedder_web_contents()->GetMainFrame());
1435 ExtensionTestMessageListener next_step_listener("TEST_STEP_PASSED", false); 1440 ExtensionTestMessageListener next_step_listener("TEST_STEP_PASSED", false);
1436 next_step_listener.set_failure_message("TEST_STEP_FAILED"); 1441 next_step_listener.set_failure_message("TEST_STEP_FAILED");
1437 { 1442 {
1438 gfx::Rect offset = embedder_web_contents()->GetContainerBounds(); 1443 gfx::Rect offset = embedder_web_contents()->GetContainerBounds();
1439 // Click the <input> element inside the <webview>. 1444 // Click the <input> element inside the <webview>.
1440 // If we wanted, we could ask the embedder to compute an appropriate point. 1445 // If we wanted, we could ask the embedder to compute an appropriate point.
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 // Get the input value from the guest. 1593 // Get the input value from the guest.
1589 value.clear(); 1594 value.clear();
1590 ASSERT_TRUE(ExecuteScriptAndExtractString(guest_web_contents, 1595 ASSERT_TRUE(ExecuteScriptAndExtractString(guest_web_contents,
1591 "window.domAutomationController." 1596 "window.domAutomationController."
1592 "send(document.querySelector('" 1597 "send(document.querySelector('"
1593 "input').value)", 1598 "input').value)",
1594 &value)); 1599 &value));
1595 EXPECT_EQ("A B C D", value); 1600 EXPECT_EQ("A B C D", value);
1596 } 1601 }
1597 #endif // OS_MACOSX 1602 #endif // OS_MACOSX
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