Tests: Convert existing text test to crash test

This commit is contained in:
Tim Ledbetter 2024-11-23 00:49:24 +00:00 committed by Jelle Raaijmakers
parent bef7e704c5
commit ded19eaab8
Notes: github-actions[bot] 2025-01-17 08:09:22 +00:00
3 changed files with 7 additions and 12 deletions

View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<script>
const abortController = new AbortController();
const signal = AbortSignal.any([abortController.signal]);
abortController.signal.addEventListener("abort", () => { AbortSignal.any([signal]) });
abortController.abort();
</script>

View file

@ -1 +0,0 @@
PASS (didn't crash)

View file

@ -1,11 +0,0 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
const abortController = new AbortController();
const signal = AbortSignal.any([abortController.signal]);
abortController.signal.addEventListener("abort", () => { AbortSignal.any([signal]) });
abortController.abort();
println("PASS (didn't crash)");
});
</script>