mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Establish baseline webdriver conformance results (#35024)
https://github.com/web-platform-tests/wpt/pull/50041 allows us to start running the webdriver conformance tests in Servo, which will make it easier for us to track regressions/improvements in our webdriver server implementation. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes are part of #15274 - [x] There are tests for these changes --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
573d394898
commit
46f59e329c
189 changed files with 5873 additions and 78 deletions
|
@ -1246,7 +1246,7 @@ impl WindowMethods<crate::DomTypeHolder> for Window {
|
|||
let rv = jsval_to_webdriver(cx, &self.globalscope, val, realm, can_gc);
|
||||
let opt_chan = self.webdriver_script_chan.borrow_mut().take();
|
||||
if let Some(chan) = opt_chan {
|
||||
chan.send(rv).unwrap();
|
||||
let _ = chan.send(rv);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1255,9 +1255,9 @@ impl WindowMethods<crate::DomTypeHolder> for Window {
|
|||
let opt_chan = self.webdriver_script_chan.borrow_mut().take();
|
||||
if let Some(chan) = opt_chan {
|
||||
if let Ok(rv) = rv {
|
||||
chan.send(Err(WebDriverJSError::JSException(rv))).unwrap();
|
||||
let _ = chan.send(Err(WebDriverJSError::JSException(rv)));
|
||||
} else {
|
||||
chan.send(rv).unwrap();
|
||||
let _ = chan.send(rv);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1265,7 +1265,7 @@ impl WindowMethods<crate::DomTypeHolder> for Window {
|
|||
fn WebdriverTimeout(&self) {
|
||||
let opt_chan = self.webdriver_script_chan.borrow_mut().take();
|
||||
if let Some(chan) = opt_chan {
|
||||
chan.send(Err(WebDriverJSError::Timeout)).unwrap();
|
||||
let _ = chan.send(Err(WebDriverJSError::Timeout));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue