Bug 101353 - [WTR] Reset EventSender before running each test.
Summary: [WTR] Reset EventSender before running each test.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Raphael Kubo da Costa (:rakuco)
URL:
Keywords:
: 92231 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-06 07:49 PST by Raphael Kubo da Costa (:rakuco)
Modified: 2012-11-06 22:40 PST (History)
9 users (show)

See Also:


Attachments
Patch (2.60 KB, patch)
2012-11-06 07:51 PST, Raphael Kubo da Costa (:rakuco)
no flags Details | Formatted Diff | Diff
Add dummy destructors to the mac/gtk/qt ports (4.66 KB, patch)
2012-11-06 08:06 PST, Raphael Kubo da Costa (:rakuco)
no flags Details | Formatted Diff | Diff
Patch (4.78 KB, patch)
2012-11-06 08:24 PST, Raphael Kubo da Costa (:rakuco)
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Kubo da Costa (:rakuco) 2012-11-06 07:49:08 PST
[WTR] Reset EventSender before running each test.
Comment 1 Raphael Kubo da Costa (:rakuco) 2012-11-06 07:51:31 PST
Created attachment 172588 [details]
Patch
Comment 2 Raphael Kubo da Costa (:rakuco) 2012-11-06 07:53:26 PST
Comment on attachment 172588 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=172588&action=review

> Tools/WebKitTestRunner/TestController.cpp:507
> +    // Reset the EventSender for each test.
> +#if PLATFORM(MAC) || PLATFORM(QT) || PLATFORM(GTK) || PLATFORM(EFL)
> +    m_eventSenderProxy = adoptPtr(new EventSenderProxy(this));
> +#endif

I'm not 100% sure this is the best place to do it (we could make EventSendingController::makeWindowObject() send a message and act when it is received, for example), or whether calling some EventSenderProxy::resetState() makes more sense. I'm open to suggestions.
Comment 3 Early Warning System Bot 2012-11-06 07:58:40 PST
Comment on attachment 172588 [details]
Patch

Attachment 172588 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/14728855
Comment 4 Raphael Kubo da Costa (:rakuco) 2012-11-06 08:06:38 PST
Created attachment 172590 [details]
Add dummy destructors to the mac/gtk/qt ports
Comment 5 Build Bot 2012-11-06 08:17:55 PST
Comment on attachment 172590 [details]
Add dummy destructors to the mac/gtk/qt ports

Attachment 172590 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/14758008
Comment 6 Raphael Kubo da Costa (:rakuco) 2012-11-06 08:24:16 PST
Created attachment 172595 [details]
Patch
Comment 7 Rafael Brandao 2012-11-06 08:42:11 PST
Comment on attachment 172595 [details]
Patch

LGTM.
Comment 8 Simon Fraser (smfr) 2012-11-06 09:58:44 PST
Comment on attachment 172595 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=172595&action=review

> Tools/WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:88
> +EventSenderProxy::~EventSenderProxy()
> +{
> +}

Is there any port that requires a non-empty destructor? If not, you could remove them all.
Comment 9 Raphael Kubo da Costa (:rakuco) 2012-11-06 14:51:54 PST
(In reply to comment #8)
> (From update of attachment 172595 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=172595&action=review
> 
> > Tools/WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:88
> > +EventSenderProxy::~EventSenderProxy()
> > +{
> > +}
> 
> Is there any port that requires a non-empty destructor? If not, you could remove them all.

The EFL one currently clears the list of selected touch points when ENABLE(TOUCH_EVENTS) is on, so I guess it makes sense to keep these for now.
Comment 10 Raphael Kubo da Costa (:rakuco) 2012-11-06 15:05:37 PST
Committed r133676: <http://trac.webkit.org/changeset/133676>
Comment 11 Csaba Osztrogonác 2012-11-06 22:40:08 PST
*** Bug 92231 has been marked as a duplicate of this bug. ***