aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorTaym Haddadi <haddadi.taym@gmail.com>2024-09-10 17:19:18 +0200
committerGitHub <noreply@github.com>2024-09-10 15:19:18 +0000
commit1b27a911af4ae4370baa1562e3d8773f390fa613 (patch)
tree66c6029bb5f29a472465e7af20a28fa881c2c23d /components/script
parent9d3d00989591d3250762525b901dee8253cde666 (diff)
downloadservo-1b27a911af4ae4370baa1562e3d8773f390fa613.tar.gz
servo-1b27a911af4ae4370baa1562e3d8773f390fa613.zip
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>
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/window.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 611fccbf974..f5461d892e5 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -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();