Bug 28161

Summary: Qt DumpRenderTree does not process named events.
Product: WebKit Reporter: Mike Fenton <mifenton>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: eric, manyoso
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
Code change for DumpRenderTree keyDown processing.
manyoso: review-
Style patch for jsobjects.cpp based upon results of cpp_style.py and WebKit style guide.
none
Fix missing brace in previous patch.
eric: commit-queue-
Revised code change wrapping strings with QLatin1String()
none
Remove working tests from qt/Skipped associated with DRT update.
none
Replacement patch with proper ChangeLog Entry manyoso: review+

Description Mike Fenton 2009-08-10 12:30:57 PDT
The DumpRenderTree does not correctly process named events as used by the tests.

Named events currently processed by Mac/Win and not handled by Qt include:

leftArrow 
rightArrow
upArrow
downArrow
pageUp
pageDown
home
end
delete

Processing of these events needs to be added to the Qt DRT.

This bug was discovered by the failure of fast/forms/textarea-arrow-navigation.html which was moved from editing/input and was relying on editing.js, which is no longer references by the test, but uses eventSender("downArrow") instead.
Comment 1 Mike Fenton 2009-08-10 13:05:15 PDT
Created attachment 34500 [details]
Code change for DumpRenderTree keyDown processing.

This patch fixes the existing test and enables all missing string based key events.  

Existing tests in skipped also need to be tested for other tests now fixed by this change.
Comment 2 Mike Fenton 2009-08-10 13:16:52 PDT
Created attachment 34504 [details]
Style patch for jsobjects.cpp based upon results of cpp_style.py and WebKit style guide.
Comment 3 Mike Fenton 2009-08-11 07:36:30 PDT
Created attachment 34555 [details]
Fix missing brace in previous patch.
Comment 4 Adam Treat 2009-08-11 07:51:58 PDT
Comment on attachment 34500 [details]
Code change for DumpRenderTree keyDown processing.

This is awesome!  I imagine this will fix quite a few tests :)

A few comments:

> +    } else {
> +        qDebug() << ">>>>>>>>> keyDown" << string;

Is this necessary?

> +        // map special keycode strings used by the tests to something that works for Qt/X11
> +        if (string == "leftArrow") {

string == QLatin1String("leftArrow") I think.  r- to change.  And then I'll land :)
Comment 5 Mike Fenton 2009-08-11 08:49:49 PDT
Created attachment 34562 [details]
Revised code change wrapping strings with QLatin1String()
Comment 6 Mike Fenton 2009-08-11 10:29:10 PDT
Created attachment 34577 [details]
Remove working tests from qt/Skipped associated with DRT update.
Comment 7 Adam Treat 2009-08-11 18:06:04 PDT
Comment on attachment 34562 [details]
Revised code change wrapping strings with QLatin1String()

Landed with r47077, clearing review flag.
Comment 8 Eric Seidel (no email) 2009-08-11 22:27:02 PDT
Comment on attachment 34555 [details]
Fix missing brace in previous patch.

LGTM.
Comment 9 Adam Treat 2009-08-12 05:44:54 PDT
Comment on attachment 34577 [details]
Remove working tests from qt/Skipped associated with DRT update.

Clear flags as this has landed.
Comment 10 Eric Seidel (no email) 2009-08-12 09:40:02 PDT
Comment on attachment 34555 [details]
Fix missing brace in previous patch.

Rejecting patch 34555 from commit-queue.  This patch will require manual commit.

Failed to run "['git', 'svn', 'dcommit']"  exit_code: 1  cwd: None
Comment 11 Eric Seidel (no email) 2009-08-12 09:41:09 PDT
ChangeLog diff is malformed.  bugzilla-tool/svn-apply don't know how to fix it, hence the commit-queue rejected it.
Comment 12 Mike Fenton 2009-08-12 09:47:06 PDT
Created attachment 34667 [details]
Replacement patch with proper ChangeLog Entry

Here's a fixed patch with the changeLog entry complete.
Comment 13 Eric Seidel (no email) 2009-08-12 15:25:56 PDT
Comment on attachment 34555 [details]
Fix missing brace in previous patch.

clearing review flag on this obsolete patch.
Comment 14 Adam Treat 2009-08-17 06:52:08 PDT
Landed with r47358.  Closing bug...