Many layoutests using EventSender today should be changed to use browser-level synthetic input instead |
||||
Issue descriptionCertain events like MouseWheelEvent generate more than one event such as GestureScrollBegin, GestureScrollUpdate, GestureScrollEnd. Sending the events into the RenderView directly bypasses all of the compositor side handling and queuing. LayoutTests aren't testing those code paths and we should really move the input event sending up to the browser process to be handled.
,
Mar 18 2016
I think Rick is correct here. It isn't entirely clear to me how we make the decision between sending event directly to the renderer, vs using browser-level synthetic input. We should probably establish some rough guidelines at some point, I think we'll want to continue using both approaches.
,
Mar 18 2016
Right I wonder if we could actually have a "Native Event Sender" which could be a completely different object than EventSender. And ultimately it would generate true platform events. Ultimately for keyboard; specifically IME it would be useful if these events went through those engines.
,
Mar 18 2016
Yep, I think the guidelines are similar to those for deciding if you want a unit test or integration test. If you're trying to test the whole system together, then use NativeEventSender. But if you just want to exercise some specific blink code, then a unit test may be better. Eg. there may be cases where content sending a surprising / invalid event sequence causes blink to crash, when we fix code in blink for that it's probably an input unit test we want to use to test it (effectively mocking out the content and UI layers). Similarly if you're testing a scenario that is special only because of code in blink (i.e. no reason to test the content side of this scenario), then it may be simpler to just use a unit test because it lets your write everything synchronously. Also at play here is which of our tests should really be interop tests (web-platform-test). I suspect many tests in fast/events should really be superseded by input WPT tests (which will also have some mechanism for integration-level synthetic input, and NOT a mechanism for unit testing).
,
Mar 20 2017
This issue has been available for more than 365 days, and should be re-evaluated. Please re-triage this issue. The Hotlist-Recharge-Cold label is applied for tracking purposes, and should not be removed after re-triaging the issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Mar 20 2017
Over to Navid for triage.
,
Jan 7
We are moving away from event sender to wpt test driver one test at a time. This work is making progress slowly but surely. |
||||
►
Sign in to add a comment |
||||
Comment 1 by rbyers@chromium.org
, Mar 18 2016