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:
Josh Matthews 2025-05-01 17:13:27 -04:00 committed by GitHub
parent 573d394898
commit 46f59e329c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
189 changed files with 5873 additions and 78 deletions

View file

@ -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));
}
}