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

Unified Diff: content/browser/renderer_host/render_widget_host_unittest.cc

Issue 8298007: Aura: unit_tests now run on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ui_test_utils_aura Bind Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/ui_test_utils_aura.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_unittest.cc
diff --git a/content/browser/renderer_host/render_widget_host_unittest.cc b/content/browser/renderer_host/render_widget_host_unittest.cc
index 7a8bea2a21f0d28679fee5a67cc504ab0539928d..3b5612538f4b25ff19d32ba9f99f7f7d49a2fd6d 100644
--- a/content/browser/renderer_host/render_widget_host_unittest.cc
+++ b/content/browser/renderer_host/render_widget_host_unittest.cc
@@ -577,7 +577,13 @@ TEST_F(RenderWidgetHostTest, PaintAtSize) {
EXPECT_EQ(30, observer.size().height());
}
-TEST_F(RenderWidgetHostTest, HandleKeyEventsWeSent) {
+// Fails on Linux Aura, see http://crbug.com/100344
+#if defined(USE_AURA) && !defined(OS_WIN)
+#define MAYBE_HandleKeyEventsWeSent FAILS_HandleKeyEventsWeSent
+#else
+#define MAYBE_HandleKeyEventsWeSent HandleKeyEventsWeSent
+#endif
+TEST_F(RenderWidgetHostTest, MAYBE_HandleKeyEventsWeSent) {
// Simulate a keyboard event.
SimulateKeyboardEvent(WebInputEvent::RawKeyDown);
@@ -614,7 +620,13 @@ TEST_F(RenderWidgetHostTest, IgnoreKeyEventsHandledByRenderer) {
EXPECT_FALSE(host_->unhandled_keyboard_event_called());
}
-TEST_F(RenderWidgetHostTest, PreHandleRawKeyDownEvent) {
+// Fails on Linux Aura, see http://crbug.com/100345
+#if defined(USE_AURA) && !defined(OS_WIN)
+#define MAYBE_PreHandleRawKeyDownEvent FAILS_PreHandleRawKeyDownEvent
+#else
+#define MAYBE_PreHandleRawKeyDownEvent PreHandleRawKeyDownEvent
+#endif
+TEST_F(RenderWidgetHostTest, MAYBE_PreHandleRawKeyDownEvent) {
// Simluate the situation that the browser handled the key down event during
// pre-handle phrase.
host_->set_prehandle_keyboard_event(true);
« no previous file with comments | « chrome/test/base/ui_test_utils_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698