diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/web-animations/crashtests/infinite-active-duration.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/web-animations/crashtests/infinite-active-duration.html')
-rw-r--r-- | testing/web-platform/tests/web-animations/crashtests/infinite-active-duration.html | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/testing/web-platform/tests/web-animations/crashtests/infinite-active-duration.html b/testing/web-platform/tests/web-animations/crashtests/infinite-active-duration.html new file mode 100644 index 0000000000..f92cd13942 --- /dev/null +++ b/testing/web-platform/tests/web-animations/crashtests/infinite-active-duration.html @@ -0,0 +1,68 @@ +<!DOCTYPE html> +<title>Various test cases producing infinite active duration</title> +<link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-iteration-count" /> +<script> + let effect = new KeyframeEffect(null, + { opacity: [0, 1] }, + { duration: 1, delay: -17592186044416, iterations: Infinity }); + effect.getComputedTiming(); + + // Infinity delay + Infinity active duration + effect = new KeyframeEffect(null, + { opacity: [0, 1] }, + { duration: 1, delay: Number.MAX_VALUE, iterations: Infinity }); + effect.getComputedTiming(); + + // Infinity end delay + Infinity active duration + effect = new KeyframeEffect(null, + { opacity: [0, 1] }, + { duration: 1, endDelay: Number.MAX_VALUE, iterations: Infinity }); + effect.getComputedTiming(); + + // Infinity delay + Infinity active duration + Infinity end delay + effect = new KeyframeEffect(null, + { opacity: [0, 1] }, + { duration: 1, + delay: Number.MAX_VALUE, endDelay: Number.MAX_VALUE, + iterations: Infinity }); + effect.getComputedTiming(); + + // -Infinity delay + Infinity active duration + effect = new KeyframeEffect(null, + { opacity: [0, 1] }, + { duration: 1, delay: -Number.MAX_VALUE, iterations: Infinity }); + effect.getComputedTiming(); + + // -Infinity end delay + Infinity active duration + effect = new KeyframeEffect(null, + { opacity: [0, 1] }, + { duration: 1, endDelay: -Number.MAX_VALUE, iterations: Infinity }); + effect.getComputedTiming(); + + // -Infinity delay + Infinity active duration + -Infinity end delay + effect = new KeyframeEffect(null, + { opacity: [0, 1] }, + { duration: 1, + delay: -Number.MAX_VALUE, endDelay: -Number.MAX_VALUE, + iterations: Infinity }); + effect.getComputedTiming(); + + // -Infinity delay + finite active duration + effect = new KeyframeEffect(null, + { opacity: [0, 1] }, + { duration: 1, delay: -Number.MAX_VALUE, iterations: 1 }); + effect.getComputedTiming(); + + // -Infinity end delay + finite active duration + effect = new KeyframeEffect(null, + { opacity: [0, 1] }, + { duration: 1, endDelay: -Number.MAX_VALUE, iterations: 1 }); + effect.getComputedTiming(); + + // very large iterations + effect = new KeyframeEffect(null, + { opacity: [0, 1] }, + { duration: 1, delay: 281474976710655, iterations: 18014398509481984 }); + effect.getComputedTiming(); + +</script> |