mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 21:28:59 +00:00
Tests: Convert existing text test to crash test
This commit is contained in:
parent
bef7e704c5
commit
ded19eaab8
Notes:
github-actions[bot]
2025-01-17 08:09:22 +00:00
Author: https://github.com/tcl3
Commit: ded19eaab8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2514
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/gmta ✅
3 changed files with 7 additions and 12 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue