mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
Tests/LibWeb: Add basic tests for setTimeout and setInterval
It is useful to have at least very basic tests for those APIs :)
This commit is contained in:
parent
4e8654e31b
commit
fe3a824ad4
Notes:
sideshowbarker
2024-07-16 21:30:46 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: fe3a824ad4
Pull-request: https://github.com/SerenityOS/serenity/pull/21234
4 changed files with 26 additions and 0 deletions
9
Tests/LibWeb/Text/input/setTimeout.html
Normal file
9
Tests/LibWeb/Text/input/setTimeout.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<script src="include.js"></script>
|
||||
<script>
|
||||
asyncTest(done => {
|
||||
setTimeout(() => {
|
||||
println("setTimeout completed");
|
||||
done();
|
||||
}, 0);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue