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

Side by Side Diff: ui/base/events/event_unittest.cc

Issue 11293028: GTTF: remove FAILS_ prefix, part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 #include "ui/base/events/event.h" 6 #include "ui/base/events/event.h"
7 7
8 #if defined(USE_X11) 8 #if defined(USE_X11)
9 #include <X11/Xlib.h> 9 #include <X11/Xlib.h>
10 #include "ui/base/x/x11_util.h" 10 #include "ui/base/x/x11_util.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // Too long a time between clicks. 94 // Too long a time between clicks.
95 test_ev1.set_location(gfx::Point(0, 0)); 95 test_ev1.set_location(gfx::Point(0, 0));
96 test_ev2.set_location(gfx::Point(0, 0)); 96 test_ev2.set_location(gfx::Point(0, 0));
97 test_ev1.set_time_stamp(start); 97 test_ev1.set_time_stamp(start);
98 test_ev2.set_time_stamp(later); 98 test_ev2.set_time_stamp(later);
99 EXPECT_FALSE(MouseEvent::IsRepeatedClickEvent(mouse_ev1, mouse_ev2)); 99 EXPECT_FALSE(MouseEvent::IsRepeatedClickEvent(mouse_ev1, mouse_ev2));
100 } 100 }
101 101
102 // Bug 99129. 102 // Bug 99129.
103 #if defined(USE_AURA) 103 #if defined(USE_AURA)
104 #define MAYBE_KeyEvent FAILS_KeyEvent 104 #define MAYBE_KeyEvent DISABLED_KeyEvent
105 #define MAYBE_KeyEventDirectUnicode FAILS_KeyEventDirectUnicode 105 #define MAYBE_KeyEventDirectUnicode DISABLED_KeyEventDirectUnicode
106 #else 106 #else
107 #define MAYBE_KeyEvent KeyEvent 107 #define MAYBE_KeyEvent KeyEvent
108 #define MAYBE_KeyEventDirectUnicode KeyEventDirectUnicode 108 #define MAYBE_KeyEventDirectUnicode KeyEventDirectUnicode
109 #endif 109 #endif
110 110
111 TEST(EventTest, MAYBE_KeyEvent) { 111 TEST(EventTest, MAYBE_KeyEvent) {
112 static const struct { 112 static const struct {
113 KeyboardCode key_code; 113 KeyboardCode key_code;
114 int flags; 114 int flags;
115 uint16 character; 115 uint16 character;
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 } 281 }
282 { 282 {
283 KeyEvent keyev(ET_KEY_RELEASED, VKEY_MENU, EF_ALT_DOWN); 283 KeyEvent keyev(ET_KEY_RELEASED, VKEY_MENU, EF_ALT_DOWN);
284 EXPECT_EQ(EF_ALT_DOWN, keyev.flags()); 284 EXPECT_EQ(EF_ALT_DOWN, keyev.flags());
285 keyev.NormalizeFlags(); 285 keyev.NormalizeFlags();
286 EXPECT_EQ(EF_NONE, keyev.flags()); 286 EXPECT_EQ(EF_NONE, keyev.flags());
287 } 287 }
288 } 288 }
289 289
290 } // namespace ui 290 } // namespace ui
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_unittest.cc ('k') | ui/gfx/platform_font_pango_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698