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); |