mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make Crashtests with test-wait wait (#33344)
* Make Crashtests with test-wait wait Signed-off-by: Taym <haddadi.taym@gmail.com> * use Atom::from instead of the atom macro Signed-off-by: Taym <haddadi.taym@gmail.com> * Update test result expectations Signed-off-by: Taym <haddadi.taym@gmail.com> --------- Signed-off-by: Taym <haddadi.taym@gmail.com>
This commit is contained in:
parent
9d3d009895
commit
1b27a911af
19 changed files with 48 additions and 3 deletions
|
@ -2018,9 +2018,11 @@ impl Window {
|
|||
if self.prepare_for_screenshot && for_display {
|
||||
// Checks if the html element has reftest-wait attribute present.
|
||||
// See http://testthewebforward.org/docs/reftests.html
|
||||
// and https://web-platform-tests.org/writing-tests/crashtest.html
|
||||
let html_element = document.GetDocumentElement();
|
||||
let reftest_wait = html_element.map_or(false, |elem| {
|
||||
elem.has_class(&atom!("reftest-wait"), CaseSensitivity::CaseSensitive)
|
||||
elem.has_class(&atom!("reftest-wait"), CaseSensitivity::CaseSensitive) ||
|
||||
elem.has_class(&Atom::from("test-wait"), CaseSensitivity::CaseSensitive)
|
||||
});
|
||||
|
||||
let has_sent_idle_message = self.has_sent_idle_message.get();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue