WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
34178
Add KeyboardTest to WebKit API tests
https://bugs.webkit.org/show_bug.cgi?id=34178
Summary
Add KeyboardTest to WebKit API tests
Yaar Schnitman
Reported
2010-01-26 12:22:20 PST
Add KeyboardTest to WebKit API tests
Attachments
Patch
(8.20 KB, patch)
2010-01-26 12:34 PST
,
Yaar Schnitman
no flags
Details
Formatted Diff
Diff
Patch
(7.98 KB, patch)
2010-01-26 12:54 PST
,
Yaar Schnitman
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yaar Schnitman
Comment 1
2010-01-26 12:34:57 PST
Created
attachment 47433
[details]
Patch
WebKit Review Bot
Comment 2
2010-01-26 12:36:33 PST
Attachment 47433
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebKit/chromium/tests/KeyboardTest.cpp:33: Found other header before a header this file implements. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] WebKit/chromium/tests/KeyboardTest.cpp:35: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 2 If any of these errors are false positives, please file a bug against check-webkit-style.
Yaar Schnitman
Comment 3
2010-01-26 12:38:12 PST
Comment on
attachment 47433
[details]
Patch Style checker can't chew on the special headers structure of this gtest.
Darin Fisher (:fishd, Google)
Comment 4
2010-01-26 12:43:42 PST
Comment on
attachment 47433
[details]
Patch
> +++ b/WebKit/chromium/tests/KeyboardTest.cpp
> +#include "../src/EditorClientImpl.h" > +#include "../src/WebInputEventConversion.h"
how about just adding src to include_dirs in WebKit.gyp?
> +using WebCore::PlatformKeyboardEvent; > +using WebCore::KeyboardEvent; > + > +using WebKit::EditorClientImpl; > +using WebKit::PlatformKeyboardEventBuilder; > +using WebKit::WebInputEvent; > +using WebKit::WebKeyboardEvent;
let's just do 'using namespace Webcore' and 'using namespace WebKit'
> +class KeyboardTest : public testing::Test { > +public: > + void SetUp() > + { > + WTF::initializeThreading();
^^^ you should be able to delete this function. RunAllTests.cpp takes care of it.
> + const char* InterpretKeyEvent( > + void SetupKeyDownEvent(WebKeyboardEvent* keyboardEvent, > + const char* InterpretOSModifierKeyPress(char keyCode) > + const char* InterpretCtrlKeyPress(char keyCode) > + const char* InterpretTab(int modifiers) > + const char* InterpretNewLine(int modifiers)
nit: change these to camelCase style
> +#if !defined(OS_MACOSX)
the OS_MACOSX macro is a chromium define. i don't think we have access to it here. this should be changed to OS(DARWIN).
Yaar Schnitman
Comment 5
2010-01-26 12:54:16 PST
Created
attachment 47435
[details]
Patch
WebKit Review Bot
Comment 6
2010-01-26 13:00:22 PST
Attachment 47435
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebKit/chromium/tests/KeyboardTest.cpp:33: Found other header before a header this file implements. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] WebKit/chromium/tests/KeyboardTest.cpp:35: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 2 If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 7
2010-01-26 21:54:22 PST
Comment on
attachment 47435
[details]
Patch Clearing flags on attachment: 47435 Committed
r53898
: <
http://trac.webkit.org/changeset/53898
>
WebKit Commit Bot
Comment 8
2010-01-26 21:54:29 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug