diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-16 21:49:14 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-16 21:49:14 +0000 |
commit | 7699d05e38e2e4e26add3357151e0fd793080353 (patch) | |
tree | b0dad38807b641c80089efc9e45af76974068037 /webkit/data | |
parent | 4c2464b49571049ad7128343bfafa9abb3be7e0c (diff) | |
download | chromium_src-7699d05e38e2e4e26add3357151e0fd793080353.zip chromium_src-7699d05e38e2e4e26add3357151e0fd793080353.tar.gz chromium_src-7699d05e38e2e4e26add3357151e0fd793080353.tar.bz2 |
Fix test_shell so that eventSender works for opened windows. I've also made focus go to the webview, just like what happens in Chrome.
This is needed for https://bugs.webkit.org/show_bug.cgi?id=36147 and also fixes plugins/keyboard-events.html on Windows.
Review URL: http://codereview.chromium.org/1011005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41769 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/data')
3 files changed, 23 insertions, 1 deletions
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/http/tests/plugins/plugin-document-has-focus-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/http/tests/plugins/plugin-document-has-focus-expected.txt new file mode 100644 index 0000000..07a9506 --- /dev/null +++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/http/tests/plugins/plugin-document-has-focus-expected.txt @@ -0,0 +1,3 @@ +CONSOLE MESSAGE: line 1: PLUGIN: keyDown 'A' +CONSOLE MESSAGE: line 1: PLUGIN: keyUp 'A' +This tests that a full page plugin gets keyboard focus without the need to first click it.
\ No newline at end of file diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/plugins/README b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/plugins/README index b3f7df8..5e2667d 100644 --- a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/plugins/README +++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/plugins/README @@ -4,4 +4,12 @@ inner-html-display-none ----------------------- The only difference is whitespace differences in the -way functions are printed.
\ No newline at end of file +way functions are printed. + + +keyboard-events +--------------- + +On Windows, windowless plugins get the shift state of the keyboard by quering the OS, since the +WM_KEYDOWN message doesn't contain that information. This is impossible to simulate through +eventSender().
\ No newline at end of file diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/plugins/keyboard-events-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/plugins/keyboard-events-expected.txt new file mode 100644 index 0000000..c944349 --- /dev/null +++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/plugins/keyboard-events-expected.txt @@ -0,0 +1,11 @@ +CONSOLE MESSAGE: line 17: PLUGIN: getFocusEvent +CONSOLE MESSAGE: line 17: PLUGIN: mouseDown at (20, 20) +CONSOLE MESSAGE: line 18: PLUGIN: mouseUp at (20, 20) +CONSOLE MESSAGE: line 21: PLUGIN: keyDown 'A' +CONSOLE MESSAGE: line 21: PLUGIN: keyUp 'A' +CONSOLE MESSAGE: line 22: PLUGIN: keyDown 'B' +CONSOLE MESSAGE: line 22: PLUGIN: keyUp 'B' +CONSOLE MESSAGE: line 23: PLUGIN: keyDown 'C' +CONSOLE MESSAGE: line 23: PLUGIN: keyUp 'C' + +This test checks if a plug-in can receive keyboard events sent from eventSender. This is a test for Bug 34936. |