mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +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 {
|
if self.prepare_for_screenshot && for_display {
|
||||||
// Checks if the html element has reftest-wait attribute present.
|
// Checks if the html element has reftest-wait attribute present.
|
||||||
// See http://testthewebforward.org/docs/reftests.html
|
// See http://testthewebforward.org/docs/reftests.html
|
||||||
|
// and https://web-platform-tests.org/writing-tests/crashtest.html
|
||||||
let html_element = document.GetDocumentElement();
|
let html_element = document.GetDocumentElement();
|
||||||
let reftest_wait = html_element.map_or(false, |elem| {
|
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();
|
let has_sent_idle_message = self.has_sent_idle_message.get();
|
||||||
|
|
2
tests/wpt/meta/css/compositing/opacity-and-transform-animation-crash.html.ini
vendored
Normal file
2
tests/wpt/meta/css/compositing/opacity-and-transform-animation-crash.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[opacity-and-transform-animation-crash.html]
|
||||||
|
expected: TIMEOUT
|
2
tests/wpt/meta/css/css-animations/crashtests/replace-keyframes-animating-filter-001.html.ini
vendored
Normal file
2
tests/wpt/meta/css/css-animations/crashtests/replace-keyframes-animating-filter-001.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[replace-keyframes-animating-filter-001.html]
|
||||||
|
expected: TIMEOUT
|
|
@ -1,2 +1,2 @@
|
||||||
[scope-shadow-sharing.html]
|
[scope-shadow-sharing.html]
|
||||||
expected: FAIL
|
expected: TIMEOUT
|
||||||
|
|
2
tests/wpt/meta/css/css-flexbox/animation/flex-basis-content-crash.html.ini
vendored
Normal file
2
tests/wpt/meta/css/css-flexbox/animation/flex-basis-content-crash.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[flex-basis-content-crash.html]
|
||||||
|
expected: TIMEOUT
|
2
tests/wpt/meta/css/css-paint-api/column-count-crash.https.html.ini
vendored
Normal file
2
tests/wpt/meta/css/css-paint-api/column-count-crash.https.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[column-count-crash.https.html]
|
||||||
|
expected: TIMEOUT
|
2
tests/wpt/meta/css/cssom-view/overflow-hidden-smooth-scroll-crash.html.ini
vendored
Normal file
2
tests/wpt/meta/css/cssom-view/overflow-hidden-smooth-scroll-crash.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[overflow-hidden-smooth-scroll-crash.html]
|
||||||
|
expected: TIMEOUT
|
2
tests/wpt/meta/css/filter-effects/feimage-circular-reference-foreign-object-crash.html.ini
vendored
Normal file
2
tests/wpt/meta/css/filter-effects/feimage-circular-reference-foreign-object-crash.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[feimage-circular-reference-foreign-object-crash.html]
|
||||||
|
expected: TIMEOUT
|
2
tests/wpt/meta/css/filter-effects/feimage-reference-foreign-object-crash.html.ini
vendored
Normal file
2
tests/wpt/meta/css/filter-effects/feimage-reference-foreign-object-crash.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[feimage-reference-foreign-object-crash.html]
|
||||||
|
expected: TIMEOUT
|
2
tests/wpt/meta/dom/abort/abort-signal-any-crash.html.ini
vendored
Normal file
2
tests/wpt/meta/dom/abort/abort-signal-any-crash.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[abort-signal-any-crash.html]
|
||||||
|
expected: TIMEOUT
|
2
tests/wpt/meta/encoding/streams/stringification-crash.html.ini
vendored
Normal file
2
tests/wpt/meta/encoding/streams/stringification-crash.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[stringification-crash.html]
|
||||||
|
expected: TIMEOUT
|
2
tests/wpt/meta/fullscreen/crashtests/content-visibility-crash.html.ini
vendored
Normal file
2
tests/wpt/meta/fullscreen/crashtests/content-visibility-crash.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[content-visibility-crash.html]
|
||||||
|
expected: TIMEOUT
|
|
@ -1,2 +1,2 @@
|
||||||
[svg-filter-lh-rlh.html]
|
[svg-filter-lh-rlh.html]
|
||||||
expected: FAIL
|
expected: TIMEOUT
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
[fieldset-middleclick.html]
|
||||||
|
expected: TIMEOUT
|
|
@ -0,0 +1,2 @@
|
||||||
|
[showmodal-shadow-sibling-frame-crash.html]
|
||||||
|
expected: TIMEOUT
|
2
tests/wpt/meta/resize-observer/multiple-observers-with-mutation-crash.html.ini
vendored
Normal file
2
tests/wpt/meta/resize-observer/multiple-observers-with-mutation-crash.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[multiple-observers-with-mutation-crash.html]
|
||||||
|
expected: TIMEOUT
|
|
@ -0,0 +1,2 @@
|
||||||
|
[selection-modify-line-boundary-around-empty-details.html]
|
||||||
|
expected: TIMEOUT
|
7
tests/wpt/mozilla/meta/MANIFEST.json
vendored
7
tests/wpt/mozilla/meta/MANIFEST.json
vendored
|
@ -8,6 +8,13 @@
|
||||||
null,
|
null,
|
||||||
{}
|
{}
|
||||||
]
|
]
|
||||||
|
],
|
||||||
|
"test-wait-crash.html": [
|
||||||
|
"2419da6af0c278a17b9ff974d4418f9e386ef3e0",
|
||||||
|
[
|
||||||
|
null,
|
||||||
|
{}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
8
tests/wpt/mozilla/tests/mozilla/test-wait-crash.html
vendored
Normal file
8
tests/wpt/mozilla/tests/mozilla/test-wait-crash.html
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html class="test-wait">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="assert" content="The test should not crash.">
|
||||||
|
|
||||||
|
<script>
|
||||||
|
fetch('/common/slow.py?delay=5000').then(() => document.documentElement.classList.remove("test-wait"));
|
||||||
|
</script>
|
Loading…
Add table
Add a link
Reference in a new issue