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

Side by Side Diff: chrome/renderer/render_view_browsertest_mac.mm

Issue 6139008: Disable mac RenderViewTest.MacTestCmdUP to fix mac build failures after webkit rool 75540:75584. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/string16.h" 5 #include "base/string16.h"
6 #include "chrome/common/native_web_keyboard_event.h" 6 #include "chrome/common/native_web_keyboard_event.h"
7 #include "chrome/common/render_messages.h" 7 #include "chrome/common/render_messages.h"
8 #include "chrome/test/render_view_test.h" 8 #include "chrome/test/render_view_test.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 21 matching lines...) Expand all
32 windowNumber:0 32 windowNumber:0
33 context:nil 33 context:nil
34 characters:s 34 characters:s
35 charactersIgnoringModifiers:s 35 charactersIgnoringModifiers:s
36 isARepeat:NO 36 isARepeat:NO
37 keyCode:code]; 37 keyCode:code];
38 } 38 }
39 39
40 // Test that cmd-up/down scrolls the page exactly if it is not intercepted by 40 // Test that cmd-up/down scrolls the page exactly if it is not intercepted by
41 // javascript. 41 // javascript.
42 TEST_F(RenderViewTest, MacTestCmdUp) { 42 TEST_F(RenderViewTest, DISABLED_MacTestCmdUp) {
43 // Some preprocessor trickery so that we can have literal html in our source, 43 // Some preprocessor trickery so that we can have literal html in our source,
44 // makes it easier to copy html to and from an html file for testing (the 44 // makes it easier to copy html to and from an html file for testing (the
45 // preprocessor will remove the newlines at the line ends, turning this into 45 // preprocessor will remove the newlines at the line ends, turning this into
46 // a single long line). 46 // a single long line).
47 #define HTML(s) #s 47 #define HTML(s) #s
48 const char* kRawHtml = HTML( 48 const char* kRawHtml = HTML(
49 <html> 49 <html>
50 <head><title></title> 50 <head><title></title>
51 <script type='text/javascript' language='javascript'> 51 <script type='text/javascript' language='javascript'>
52 function OnKeyEvent(ev) { 52 function OnKeyEvent(ev) {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 const char* kArrowUpNoScroll = 127 const char* kArrowUpNoScroll =
128 "38,false,false,true,false\np1\n\np2"; 128 "38,false,false,true,false\np1\n\np2";
129 view_->OnSetEditCommandsForNextKeyEvent( 129 view_->OnSetEditCommandsForNextKeyEvent(
130 EditCommands(1, EditCommand("moveToBeginningOfDocument", ""))); 130 EditCommands(1, EditCommand("moveToBeginningOfDocument", "")));
131 SendNativeKeyEvent(NativeWebKeyboardEvent(arrowUpKeyDown)); 131 SendNativeKeyEvent(NativeWebKeyboardEvent(arrowUpKeyDown));
132 output = GetMainFrame()->contentAsText(kMaxOutputCharacters); 132 output = GetMainFrame()->contentAsText(kMaxOutputCharacters);
133 EXPECT_EQ(kArrowUpNoScroll, UTF16ToASCII(output)); 133 EXPECT_EQ(kArrowUpNoScroll, UTF16ToASCII(output));
134 } 134 }
135 135
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698