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

Unified Diff: views/controls/textfield/native_textfield_views_unittest.cc

Issue 8150001: Quick fix for NativeTextfieldViewsTest on win aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with changes from http://codereview.chromium.org/8143021. 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 | « no previous file | views/events/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f0ce31bcde4a211d45d157171d4f42c8bd0d83a7 100644
--- a/views/controls/textfield/native_textfield_views_unittest.cc
+++ b/views/controls/textfield/native_textfield_views_unittest.cc
@@ -34,32 +34,17 @@
#include "views/widget/native_widget_private.h"
#include "views/widget/widget.h"
-// Bug 99128.
-#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
+// Bug http://crbug.com/99128
+#if defined(OS_WIN)
sadrul 2011/10/05 22:54:02 I think the simplest would be to make this #if de
sadrul 2011/10/05 22:57:18 Clearly the #else block should remain as it is.
#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_InitiateDrag DragAndDrop_InitiateDrag
#define MAYBE_DragAndDrop_ToTheLeft DragAndDrop_ToTheLeft
+#define MAYBE_DragAndDrop_ToTheRight DragAndDrop_ToTheRight
+#define MAYBE_DragAndDrop_Canceled DragAndDrop_Canceled
#define MAYBE_ReadOnlyTest ReadOnlyTest
#define MAYBE_TextInputClientTest TextInputClientTest
#define MAYBE_UndoRedoTest UndoRedoTest
@@ -69,7 +54,38 @@
#define MAYBE_HitOutsideTextAreaInRTLTest HitOutsideTextAreaInRTLTest
#define MAYBE_OverflowTest OverflowTest
#define MAYBE_OverflowInRTLTest OverflowInRTLTest
-#endif
+#else // OS_WIN
+
+#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_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
+
+// Drag and drop for aura in linux hasn't been implemented yet.
+// Bug http://crbug.com/97845
+#if defined(USE_AURA)
+#define MAYBE_DragAndDrop_InitiateDrag DISABLED_DragAndDrop_InitiateDrag
+#define MAYBE_DragAndDrop_ToTheLeft DISABLED_DragAndDrop_ToTheLeft
+#define MAYBE_DragAndDrop_ToTheRight DISABLED_DragAndDrop_ToTheRight
+#define MAYBE_DragAndDrop_Canceled DISABLED_DragAndDrop_Canceled
+#else // USE_AURA
+#define MAYBE_DragAndDrop_InitiateDrag FAILS_DragAndDrop_InitiateDrag
+#define MAYBE_DragAndDrop_ToTheLeft FAILS_DragAndDrop_ToTheLeft
+#define MAYBE_DragAndDrop_ToTheRight FAILS_DragAndDrop_ToTheRight
+#define MAYBE_DragAndDrop_Canceled FAILS_DragAndDrop_Canceled
+#endif // USE_AURA
+
+#endif // OS_WIN
namespace {
@@ -810,7 +826,7 @@ TEST_F(NativeTextfieldViewsTest, DragAndDrop_AcceptDrop) {
#endif
#if !defined(TOUCH_UI)
-TEST_F(NativeTextfieldViewsTest, DragAndDrop_InitiateDrag) {
+TEST_F(NativeTextfieldViewsTest, MAYBE_DragAndDrop_InitiateDrag) {
InitTextfield(Textfield::STYLE_DEFAULT);
textfield_->SetText(ASCIIToUTF16("hello string world"));
@@ -954,7 +970,7 @@ TEST_F(NativeTextfieldViewsTest, MAYBE_DragAndDrop_ToTheLeft) {
EXPECT_STR_EQ("h worlellod", textfield_->text());
}
-TEST_F(NativeTextfieldViewsTest, DragAndDrop_Canceled) {
+TEST_F(NativeTextfieldViewsTest, MAYBE_DragAndDrop_Canceled) {
InitTextfield(Textfield::STYLE_DEFAULT);
textfield_->SetText(ASCIIToUTF16("hello world"));
« no previous file with comments | « no previous file | views/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698