From 86a18d9f3b81fc6a7425ae20a84b17786605d762 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Tue, 16 Mar 2010 23:40:15 +0000 Subject: Revert 41781 - Revert 41769 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/keyboardevents.html on Windows. Review URL: http://codereview.chromium.org/1011005 TBR=jam@chromium.org Review URL: http://codereview.chromium.org/997008 TBR=stuartmorgan@chromium.org Review URL: http://codereview.chromium.org/990005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41784 0039d316-1c4b-4281-b951-d872f2087c98 --- .../http/tests/plugins/plugin-document-has-focus-expected.txt | 3 +++ .../platform/chromium-win/LayoutTests/plugins/README | 10 +++++++++- .../LayoutTests/plugins/keyboard-events-expected.txt | 11 +++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 webkit/data/layout_tests/platform/chromium-win/LayoutTests/http/tests/plugins/plugin-document-has-focus-expected.txt create mode 100644 webkit/data/layout_tests/platform/chromium-win/LayoutTests/plugins/keyboard-events-expected.txt (limited to 'webkit/data') 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. -- cgit v1.1