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

Side by Side Diff: chrome/renderer/render_view_browsertest.cc

Issue 3152051: Undisable tests that were crashy because of re-initializing WebKit: (Closed)
Patch Set: Created 10 years, 3 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 unified diff | Download patch
« no previous file with comments | « chrome/renderer/form_manager_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/keyboard_codes.h" 8 #include "base/keyboard_codes.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 is_white = false; 487 is_white = false;
488 break; 488 break;
489 } 489 }
490 } 490 }
491 } 491 }
492 ASSERT_TRUE(!is_white); 492 ASSERT_TRUE(!is_white);
493 } 493 }
494 494
495 // Test that we can receive correct DOM events when we send input events 495 // Test that we can receive correct DOM events when we send input events
496 // through the RenderWidget::OnHandleInputEvent() function. 496 // through the RenderWidget::OnHandleInputEvent() function.
497 // Crashy, http://crbug.com/52643. 497 TEST_F(RenderViewTest, OnHandleKeyboardEvent) {
498 TEST_F(RenderViewTest, DISABLED_OnHandleKeyboardEvent) {
499 // TODO(phajdan.jr): enable on Window when sprintf is removed. 498 // TODO(phajdan.jr): enable on Window when sprintf is removed.
500 #if defined(OS_LINUX) 499 #if defined(OS_LINUX)
501 // Load an HTML page consisting of one <input> element and three 500 // Load an HTML page consisting of one <input> element and three
502 // contentediable <div> elements. 501 // contentediable <div> elements.
503 // The <input> element is used for sending keyboard events, and the <div> 502 // The <input> element is used for sending keyboard events, and the <div>
504 // elements are used for writing DOM events in the following format: 503 // elements are used for writing DOM events in the following format:
505 // "<keyCode>,<shiftKey>,<controlKey>,<altKey>". 504 // "<keyCode>,<shiftKey>,<controlKey>,<altKey>".
506 // TODO(hbono): <http://crbug.com/2215> Our WebKit port set |ev.metaKey| to 505 // TODO(hbono): <http://crbug.com/2215> Our WebKit port set |ev.metaKey| to
507 // true when pressing an alt key, i.e. the |ev.metaKey| value is not 506 // true when pressing an alt key, i.e. the |ev.metaKey| value is not
508 // trustworthy. We will check the |ev.metaKey| value when this issue is fixed. 507 // trustworthy. We will check the |ev.metaKey| value when this issue is fixed.
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 0); 1083 0);
1085 1084
1086 ProcessPendingMessages(); 1085 ProcessPendingMessages();
1087 const IPC::Message* message2 = render_thread_.sink().GetUniqueMessageMatching( 1086 const IPC::Message* message2 = render_thread_.sink().GetUniqueMessageMatching(
1088 ViewHostMsg_FillAutoFillFormData::ID); 1087 ViewHostMsg_FillAutoFillFormData::ID);
1089 1088
1090 // No message should be sent in this case. |firstname| is filled directly. 1089 // No message should be sent in this case. |firstname| is filled directly.
1091 ASSERT_EQ(static_cast<IPC::Message*>(NULL), message2); 1090 ASSERT_EQ(static_cast<IPC::Message*>(NULL), message2);
1092 EXPECT_EQ(firstname.value(), WebKit::WebString::fromUTF8("David")); 1091 EXPECT_EQ(firstname.value(), WebKit::WebString::fromUTF8("David"));
1093 } 1092 }
OLDNEW
« no previous file with comments | « chrome/renderer/form_manager_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698