mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb: Convert some sync tests to be async
The events tested here are decidedly async. We also can't really write
sync tests of the form "test(async () => {})". Nothing will await the
async callback.
This commit is contained in:
Notes:
github-actions[bot]
2024-10-03 11:08:36 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/c9cbaeb59d6 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 ✅
@@ -1,6 +1,6 @@
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(async () => {
|
||||
asyncTest(async done => {
|
||||
let dataTransfer = new DataTransfer();
|
||||
println(`dropEffect: ${dataTransfer.dropEffect}`);
|
||||
println(`effectAllowed: ${dataTransfer.effectAllowed}`);
|
||||
@@ -50,5 +50,7 @@
|
||||
if (dataTransferItemList[2] !== undefined) {
|
||||
println("FAILED");
|
||||
}
|
||||
|
||||
done();
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user