mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibWeb: Port some manually async tests to use asyncTest
These tests were mostly async tests written in a manual way. This ports them to use the standard asyncTest() infrastructure. This is mostly just to reduce calls to internals.signalTextTestIsDone, which will have a required parameter in an upcoming test.
This commit is contained in:
parent
d5ba665f89
commit
96082d6ae1
Notes:
github-actions[bot]
2024-10-03 11:08:43 +00:00
Author: https://github.com/trflynn89
Commit: 96082d6ae1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1603
Reviewed-by: https://github.com/awesomekling ✅
Reviewed-by: https://github.com/circl-lastname
Reviewed-by: https://github.com/kalenikaliaksandr ✅
5 changed files with 64 additions and 54 deletions
|
@ -2,11 +2,13 @@
|
|||
<div id="foo">
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
setTimeout(function () {
|
||||
foo.remove();
|
||||
// Pass (didn't crash)
|
||||
internals.signalTextTestIsDone();
|
||||
}, 0);
|
||||
asyncTest(done => {
|
||||
setTimeout(function () {
|
||||
foo.remove();
|
||||
// Pass (didn't crash)
|
||||
done();
|
||||
}, 0);
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<iframe></iframe>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue