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

Issue 6261: This fixes http://code.google.com/p/chromium/issues/detail?id=3007, which is ... (Closed)

Created:
12 years, 2 months ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
tony, tc
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

This fixes http://code.google.com/p/chromium/issues/detail?id=3007, which is the mouse-click-events.html layout test failure. Fix as per below:- 1. The test shell mouse event generating mechanism now tracks the last mouse button number received. This is used to determine whether the click count continues to increment or not. 2. We now default to middle button if the button number passed in from js contains anything other than 0 or 2. This is as per the event sending mechanism in webkit mac. We still need to re-baseline this test as the number of events printed on the page cause a scrollbar to show up for the 4th mouse event test. This causes the middle mouse button to be eaten as per recent changes in EventHandler.cpp. Bug=3007 R=tony Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=2917

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -23 lines) Patch
A webkit/data/layout_test_results/common/LayoutTests/fast/events/mouse-click-events-expected.txt View 1 1 chunk +35 lines, -0 lines 0 comments Download
M webkit/tools/layout_tests/test_lists/tests_fixable.txt View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M webkit/tools/test_shell/event_sending_controller.h View 2 3 4 2 chunks +11 lines, -3 lines 0 comments Download
M webkit/tools/test_shell/event_sending_controller.cc View 2 3 4 5 chunks +38 lines, -14 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ananta
12 years, 2 months ago (2008-10-05 19:39:39 UTC) #1
tony
It looks like we set the webmouseevent::layout_test_click_count in webkit/tools/test_shell/event_sending_controller.cc. Is that not enough? I think ...
12 years, 2 months ago (2008-10-05 22:34:44 UTC) #2
ananta
Hi Tony The latest snapshot has been updated as per the following:- 1. The test ...
12 years, 2 months ago (2008-10-06 22:24:55 UTC) #3
tony
12 years, 2 months ago (2008-10-06 22:35:56 UTC) #4
LGTM!

Nit: I would probably just make everything file static (or in an anonymous
namespace), but this is fine too.

On 2008/10/06 22:24:55, ananta wrote:
> Hi Tony
> 
> The latest snapshot has been updated as per the following:-
> 1. The test shell mouse event generating mechanism now tracks the last mouse
> button number received. This is used to determine whether the click count
> continues to increment or not. 
> 
> 2. We now default to middle button if the button number passed in from js
> contains anything other than 0 or 2. This is as per the event sending
mechanism
> in webkit mac.
> 
> We still need to re-baseline this test as the number of events printed on the
> page cause a scrollbar to show up for the 4th mouse event test. This causes
the
> middle mouse button to be eaten as per recent changes in EventHandler.cpp. 
> 
> Thanks
> Ananta

Powered by Google App Engine
This is Rietveld 408576698