summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/render_view_unittest.cc')
-rw-r--r--chrome/renderer/render_view_unittest.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/renderer/render_view_unittest.cc b/chrome/renderer/render_view_unittest.cc
index 2dc02bf..db4eacf 100644
--- a/chrome/renderer/render_view_unittest.cc
+++ b/chrome/renderer/render_view_unittest.cc
@@ -23,7 +23,8 @@ using WebKit::WebString;
using WebKit::WebTextDirection;
using WebKit::WebURLError;
-#if 0 // !defined(OS_LINUX)
+namespace {
+
static WebCompositionCommand ToCompositionCommand(int string_type) {
switch (string_type) {
default:
@@ -36,7 +37,8 @@ static WebCompositionCommand ToCompositionCommand(int string_type) {
return WebKit::WebCompositionCommandConfirm;
}
}
-#endif
+
+} // namespace
TEST_F(RenderViewTest, OnLoadAlternateHTMLText) {
// Test a new navigation.
@@ -144,8 +146,6 @@ TEST_F(RenderViewTest, OnImeStateChanged) {
// cases, this test should not only call IME-related functions in the
// RenderWidget class, but also call some RenderWidget members, e.g.
// ExecuteJavaScript(), RenderWidget::OnSetFocus(), etc.
-// Disabled on Linux: http://crbug.com/27927
-#if 0 // !defined(OS_LINUX)
TEST_F(RenderViewTest, ImeComposition) {
enum ImeCommand {
IME_INITIALIZE,
@@ -263,7 +263,6 @@ TEST_F(RenderViewTest, ImeComposition) {
}
}
}
-#endif
// Test that the RenderView::OnSetTextDirection() function can change the text
// direction of the selected input element.