Chromium Code Reviews| Index: views/controls/textfield/native_textfield_views_unittest.cc |
| diff --git a/views/controls/textfield/native_textfield_views_unittest.cc b/views/controls/textfield/native_textfield_views_unittest.cc |
| index d2da8921524913322099629788fa56a195cb6660..f38e2f25be19a2e0905fdde84eb5962545bf7c15 100644 |
| --- a/views/controls/textfield/native_textfield_views_unittest.cc |
| +++ b/views/controls/textfield/native_textfield_views_unittest.cc |
| @@ -34,43 +34,6 @@ |
| #include "views/widget/native_widget_private.h" |
| #include "views/widget/widget.h" |
| -// Bug 99128. |
|
oshima
2011/10/05 21:02:19
Can you keep the comment and say still a lot of te
sadrul
2011/10/05 21:44:56
FYI http://codereview.chromium.org/8143021/
Some
msw
2011/10/05 22:52:20
I merged with your changes from http://codereview.
|
| -#if defined(USE_AURA) |
| -#define MAYBE_KeyTest FAILS_KeyTest |
| -#define MAYBE_ControlAndSelectTest FAILS_ControlAndSelectTest |
| -#define MAYBE_InsertionDeletionTest FAILS_InsertionDeletionTest |
| -#define MAYBE_OnKeyPressReturnValueTest FAILS_OnKeyPressReturnValueTest |
| -#define MAYBE_CursorMovement FAILS_CursorMovement |
| -#define MAYBE_DragAndDrop_ToTheRight FAILS_DragAndDrop_ToTheRight |
| -#define MAYBE_DragAndDrop_ToTheLeft FAILS_DragAndDrop_ToTheLeft |
| -#define MAYBE_ReadOnlyTest FAILS_ReadOnlyTest |
| -#define MAYBE_TextInputClientTest FAILS_TextInputClientTest |
| -#define MAYBE_UndoRedoTest FAILS_UndoRedoTest |
| -#define MAYBE_TextCursorDisplayTest FAILS_TextCursorDisplayTest |
| -#define MAYBE_TextCursorDisplayInRTLTest FAILS_TextCursorDisplayInRTLTest |
| -#define MAYBE_HitOutsideTextAreaTest FAILS_HitOutsideTextAreaTest |
| -#define MAYBE_HitOutsideTextAreaInRTLTest FAILS_HitOutsideTextAreaInRTLTest |
| -#define MAYBE_OverflowTest FAILS_OverflowTest |
| -#define MAYBE_OverflowInRTLTest FAILS_OverflowInRTLTest |
| -#else |
| -#define MAYBE_KeyTest KeyTest |
| -#define MAYBE_ControlAndSelectTest ControlAndSelectTest |
| -#define MAYBE_InsertionDeletionTest InsertionDeletionTest |
| -#define MAYBE_OnKeyPressReturnValueTest OnKeyPressReturnValueTest |
| -#define MAYBE_CursorMovement CursorMovement |
| -#define MAYBE_DragAndDrop_ToTheRight DragAndDrop_ToTheRight |
| -#define MAYBE_DragAndDrop_ToTheLeft DragAndDrop_ToTheLeft |
| -#define MAYBE_ReadOnlyTest ReadOnlyTest |
| -#define MAYBE_TextInputClientTest TextInputClientTest |
| -#define MAYBE_UndoRedoTest UndoRedoTest |
| -#define MAYBE_TextCursorDisplayTest TextCursorDisplayTest |
| -#define MAYBE_TextCursorDisplayInRTLTest TextCursorDisplayInRTLTest |
| -#define MAYBE_HitOutsideTextAreaTest HitOutsideTextAreaTest |
| -#define MAYBE_HitOutsideTextAreaInRTLTest HitOutsideTextAreaInRTLTest |
| -#define MAYBE_OverflowTest OverflowTest |
| -#define MAYBE_OverflowInRTLTest OverflowInRTLTest |
| -#endif |
| - |
| namespace { |
| // A wrapper of Textfield to intercept the result of OnKeyPressed() and |
| @@ -371,7 +334,7 @@ TEST_F(NativeTextfieldViewsTest, ModelChangesTest) { |
| EXPECT_TRUE(last_contents_.empty()); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_KeyTest) { |
| +TEST_F(NativeTextfieldViewsTest, KeyTest) { |
| InitTextfield(Textfield::STYLE_DEFAULT); |
| SendKeyEvent(ui::VKEY_C, true, false); |
| EXPECT_STR_EQ("C", textfield_->text()); |
| @@ -392,7 +355,7 @@ TEST_F(NativeTextfieldViewsTest, MAYBE_KeyTest) { |
| EXPECT_STR_EQ("cC1!!", last_contents_); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_ControlAndSelectTest) { |
| +TEST_F(NativeTextfieldViewsTest, ControlAndSelectTest) { |
| // Insert a test string in a textfield. |
| InitTextfield(Textfield::STYLE_DEFAULT); |
| textfield_->SetText(ASCIIToUTF16("one two three")); |
| @@ -427,7 +390,7 @@ TEST_F(NativeTextfieldViewsTest, MAYBE_ControlAndSelectTest) { |
| EXPECT_STR_EQ("ZERO ", textfield_->GetSelectedText()); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_InsertionDeletionTest) { |
| +TEST_F(NativeTextfieldViewsTest, InsertionDeletionTest) { |
| // Insert a test string in a textfield. |
| InitTextfield(Textfield::STYLE_DEFAULT); |
| char test_str[] = "this is a test"; |
| @@ -556,7 +519,7 @@ TEST_F(NativeTextfieldViewsTest, TextInputType) { |
| EXPECT_EQ(ui::TEXT_INPUT_TYPE_NONE, GetTextInputType()); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_OnKeyPressReturnValueTest) { |
| +TEST_F(NativeTextfieldViewsTest, OnKeyPressReturnValueTest) { |
| InitTextfield(Textfield::STYLE_DEFAULT); |
| // Character keys will be handled by input method. |
| @@ -587,7 +550,7 @@ TEST_F(NativeTextfieldViewsTest, MAYBE_OnKeyPressReturnValueTest) { |
| EXPECT_FALSE(textfield_->key_handled()); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_CursorMovement) { |
| +TEST_F(NativeTextfieldViewsTest, CursorMovement) { |
| InitTextfield(Textfield::STYLE_DEFAULT); |
| // Test with trailing whitespace. |
| @@ -847,7 +810,7 @@ TEST_F(NativeTextfieldViewsTest, DragAndDrop_InitiateDrag) { |
| textfield_view_->GetDragOperationsForView(textfield_view_, kStringPoint)); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_DragAndDrop_ToTheRight) { |
| +TEST_F(NativeTextfieldViewsTest, DragAndDrop_ToTheRight) { |
| InitTextfield(Textfield::STYLE_DEFAULT); |
| textfield_->SetText(ASCIIToUTF16("hello world")); |
| @@ -901,7 +864,7 @@ TEST_F(NativeTextfieldViewsTest, MAYBE_DragAndDrop_ToTheRight) { |
| EXPECT_STR_EQ("h welloorld", textfield_->text()); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_DragAndDrop_ToTheLeft) { |
| +TEST_F(NativeTextfieldViewsTest, DragAndDrop_ToTheLeft) { |
| InitTextfield(Textfield::STYLE_DEFAULT); |
| textfield_->SetText(ASCIIToUTF16("hello world")); |
| @@ -982,7 +945,7 @@ TEST_F(NativeTextfieldViewsTest, DragAndDrop_Canceled) { |
| } |
| #endif |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_ReadOnlyTest) { |
| +TEST_F(NativeTextfieldViewsTest, ReadOnlyTest) { |
| InitTextfield(Textfield::STYLE_DEFAULT); |
| textfield_->SetText(ASCIIToUTF16(" one two three ")); |
| textfield_->SetReadOnly(true); |
| @@ -1039,7 +1002,7 @@ TEST_F(NativeTextfieldViewsTest, MAYBE_ReadOnlyTest) { |
| EXPECT_STR_EQ(" four five six ", textfield_->GetSelectedText()); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_TextInputClientTest) { |
| +TEST_F(NativeTextfieldViewsTest, TextInputClientTest) { |
| InitTextfield(Textfield::STYLE_DEFAULT); |
| TextInputClient* client = textfield_->GetTextInputClient(); |
| EXPECT_TRUE(client); |
| @@ -1129,7 +1092,7 @@ TEST_F(NativeTextfieldViewsTest, MAYBE_TextInputClientTest) { |
| EXPECT_TRUE(textfield_->GetTextInputClient()); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_UndoRedoTest) { |
| +TEST_F(NativeTextfieldViewsTest, UndoRedoTest) { |
| InitTextfield(Textfield::STYLE_DEFAULT); |
| SendKeyEvent(ui::VKEY_A); |
| EXPECT_STR_EQ("a", textfield_->text()); |
| @@ -1237,7 +1200,7 @@ TEST_F(NativeTextfieldViewsTest, MAYBE_UndoRedoTest) { |
| EXPECT_STR_EQ("ab3", textfield_->text()); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_TextCursorDisplayTest) { |
| +TEST_F(NativeTextfieldViewsTest, TextCursorDisplayTest) { |
| InitTextfield(Textfield::STYLE_DEFAULT); |
| // LTR-RTL string in LTR context. |
| SendKeyEvent('a'); |
| @@ -1289,7 +1252,7 @@ TEST_F(NativeTextfieldViewsTest, MAYBE_TextCursorDisplayTest) { |
| EXPECT_LT(prev_x, x); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_TextCursorDisplayInRTLTest) { |
| +TEST_F(NativeTextfieldViewsTest, TextCursorDisplayInRTLTest) { |
| std::string locale = l10n_util::GetApplicationLocale(""); |
| base::i18n::SetICUDefaultLocale("he"); |
| @@ -1407,7 +1370,7 @@ TEST_F(NativeTextfieldViewsTest, HitInsideTextAreaTest) { |
| } |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_HitOutsideTextAreaTest) { |
| +TEST_F(NativeTextfieldViewsTest, HitOutsideTextAreaTest) { |
| InitTextfield(Textfield::STYLE_DEFAULT); |
| // LTR-RTL string in LTR context. |
| @@ -1447,7 +1410,7 @@ TEST_F(NativeTextfieldViewsTest, MAYBE_HitOutsideTextAreaTest) { |
| EXPECT_EQ(bound, GetCursorBounds()); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_HitOutsideTextAreaInRTLTest) { |
| +TEST_F(NativeTextfieldViewsTest, HitOutsideTextAreaInRTLTest) { |
| std::string locale = l10n_util::GetApplicationLocale(""); |
| base::i18n::SetICUDefaultLocale("he"); |
| @@ -1501,7 +1464,7 @@ void OverflowCursorBoundTestVerifier(const gfx::Rect& display, |
| EXPECT_GE(display.bottom(), bound.bottom()); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_OverflowTest) { |
| +TEST_F(NativeTextfieldViewsTest, OverflowTest) { |
| InitTextfield(Textfield::STYLE_DEFAULT); |
| string16 str; |
| @@ -1531,7 +1494,7 @@ TEST_F(NativeTextfieldViewsTest, MAYBE_OverflowTest) { |
| EXPECT_EQ(501U, textfield_->GetCursorPosition()); |
| } |
| -TEST_F(NativeTextfieldViewsTest, MAYBE_OverflowInRTLTest) { |
| +TEST_F(NativeTextfieldViewsTest, OverflowInRTLTest) { |
| std::string locale = l10n_util::GetApplicationLocale(""); |
| base::i18n::SetICUDefaultLocale("he"); |