mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05: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: https://github.com/LadybirdBrowser/ladybird/commit/ded19eaab8b 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
7
Tests/LibWeb/Crash/DOM/AbortSignal-any-crash.html
Normal file
7
Tests/LibWeb/Crash/DOM/AbortSignal-any-crash.html
Normal 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>
|
|
@ -1 +0,0 @@
|
|||
PASS (didn't crash)
|
|
@ -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…
Reference in a new issue