mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02: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:
Notes:
github-actions[bot]
2024-10-03 11:08:43 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/96082d6ae12 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 ✅
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user