Skip to content

Commit 0c6422a

Browse files
majidoCommit bot
authored and
Commit bot
committed
event_sender should include a timestamp when firing keyboard events
BUG=160524 Review URL: https://codereview.chromium.org/1353943002 Cr-Commit-Position: refs/heads/master@{#349475}
1 parent a21b8dc commit 0c6422a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/test_runner/event_sender.cc

+1
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,7 @@ void EventSender::KeyDown(const std::string& code_str,
13961396
// Windows event flow; on other platforms we create a merged event and test
13971397
// the event flow that that platform provides.
13981398
WebKeyboardEvent event_down;
1399+
event_down.timeStampSeconds = GetCurrentEventTimeSec();
13991400
event_down.type = WebInputEvent::RawKeyDown;
14001401
event_down.modifiers = modifiers;
14011402
event_down.windowsKeyCode = code;

0 commit comments

Comments
 (0)