mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Fix webdriver wait for response from constellation (#37095)
Webdriver actions only wait for response from constellation if `dispatch_tick_actions` sends at least 1 event. Testing: `./mach test-wpt -r --product servodriver ./tests/wpt/tests/webdriver/tests/classic/perform_actions/perform.py ` cc: @xiaochengh, @yezhizhen Signed-off-by: batu_hoang <longvatrong111@gmail.com>
This commit is contained in:
parent
8937542fe3
commit
5ef66ce386
2 changed files with 30 additions and 9 deletions
|
@ -58,16 +58,16 @@ impl InputEvent {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn with_webdriver_message_id(self, webdriver_id: Option<WebDriverMessageId>) -> Self {
|
||||
pub fn with_webdriver_message_id(mut self, webdriver_id: Option<WebDriverMessageId>) -> Self {
|
||||
match self {
|
||||
InputEvent::EditingAction(..) => {},
|
||||
InputEvent::Gamepad(..) => {},
|
||||
InputEvent::Ime(..) => {},
|
||||
InputEvent::Keyboard(..) => {},
|
||||
InputEvent::MouseButton(mut event) => {
|
||||
InputEvent::MouseButton(ref mut event) => {
|
||||
event.webdriver_id = webdriver_id;
|
||||
},
|
||||
InputEvent::MouseMove(mut event) => {
|
||||
InputEvent::MouseMove(ref mut event) => {
|
||||
event.webdriver_id = webdriver_id;
|
||||
},
|
||||
InputEvent::Touch(..) => {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue