Auto merge of #29753 - michaelgrigoryan25:master, r=jdm

Update: Bump webdriver version to 0.48

<!-- Please describe your changes on the following line: -->

These changes bump the `webdriver` crate from version 0.44 to 0.48. There are compilation issues which will need to be addressed accordingly.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #29742 (GitHub issue number if applicable)

<!-- Either: -->
- [X] These changes may require some additional tests

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2023-05-18 21:52:39 +02:00 committed by GitHub
commit 7443ac9944
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 165 additions and 211 deletions

View file

@ -77,6 +77,7 @@ fn compute_tick_duration(tick_actions: &ActionSequence) -> u64 {
}
},
ActionsType::Key { actions: _ } => (),
ActionsType::Wheel { actions } => todo!("Not implemented."),
}
duration
}
@ -188,6 +189,7 @@ impl Handler {
}
}
},
ActionsType::Wheel { actions } => todo!("Not implemented."),
}
Ok(())
@ -282,6 +284,7 @@ impl Handler {
actions: vec![PointerActionItem::Pointer(PointerAction::Up(
PointerUpAction {
button: action.button,
..Default::default()
},
))],
},
@ -328,6 +331,7 @@ impl Handler {
actions: vec![PointerActionItem::Pointer(PointerAction::Down(
PointerDownAction {
button: action.button,
..Default::default()
},
))],
},
@ -356,8 +360,8 @@ impl Handler {
let tick_start = Instant::now();
// Steps 1 - 2
let x_offset = action.x.unwrap_or(0);
let y_offset = action.y.unwrap_or(0);
let x_offset = action.x;
let y_offset = action.y;
// Steps 3 - 4
let (start_x, start_y) = match self

View file

@ -115,8 +115,9 @@ pub fn start_server(port: u16, constellation_chan: Sender<ConstellationMsg>) {
.spawn(move || {
let address = SocketAddrV4::new("0.0.0.0".parse().unwrap(), port);
match server::start(
"localhost".to_owned(),
SocketAddr::V4(address),
vec![],
vec![],
handler,
extension_routes(),
) {
@ -1510,15 +1511,22 @@ impl Handler {
let pointer_move_action = PointerMoveAction {
duration: None,
origin: PointerOrigin::Element(WebElement(element_id)),
x: Some(0),
y: Some(0),
x: 0,
y: 0,
..Default::default()
};
// Steps 8.7 - 8.8
let pointer_down_action = PointerDownAction { button: 1 };
let pointer_down_action = PointerDownAction {
button: 1,
..Default::default()
};
// Steps 8.9 - 8.10
let pointer_up_action = PointerUpAction { button: 1 };
let pointer_up_action = PointerUpAction {
button: 1,
..Default::default()
};
// Step 8.11
if let Err(error) =