mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
webdriver: Rename wait_for_script_response
to wait_for_ipc_response
(#38537)
As titled. Initially I want to include this as part of another PR but looks so messy.. The motivation is that we are no longer just waiting for script response. Testing: No behaviour change. Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
This commit is contained in:
parent
6651f37c05
commit
31acac316d
3 changed files with 48 additions and 50 deletions
|
@ -20,7 +20,7 @@ use webdriver::actions::{
|
|||
use webdriver::command::ActionsParameters;
|
||||
use webdriver::error::{ErrorStatus, WebDriverError};
|
||||
|
||||
use crate::{Handler, VerifyBrowsingContextIsOpen, WebElement, wait_for_script_response};
|
||||
use crate::{Handler, VerifyBrowsingContextIsOpen, WebElement, wait_for_ipc_response};
|
||||
|
||||
// Interval between wheelScroll and pointerMove increments in ms, based on common vsync
|
||||
static POINTERMOVE_INTERVAL: u64 = 17;
|
||||
|
@ -801,7 +801,7 @@ impl Handler {
|
|||
self.send_message_to_embedder(cmd_msg)
|
||||
.map_err(|_| ErrorStatus::UnknownError)?;
|
||||
|
||||
let viewport_size = match wait_for_script_response(receiver) {
|
||||
let viewport_size = match wait_for_ipc_response(receiver) {
|
||||
Ok(response) => response,
|
||||
Err(WebDriverError { error, .. }) => return Err(error),
|
||||
};
|
||||
|
@ -823,7 +823,7 @@ impl Handler {
|
|||
VerifyBrowsingContextIsOpen::No,
|
||||
)
|
||||
.unwrap();
|
||||
let response = match wait_for_script_response(receiver) {
|
||||
let response = match wait_for_ipc_response(receiver) {
|
||||
Ok(response) => response,
|
||||
Err(WebDriverError { error, .. }) => return Err(error),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue