mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00: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:
parent
96082d6ae1
commit
c9cbaeb59d
Notes:
github-actions[bot]
2024-10-03 11:08:36 +00:00
Author: https://github.com/trflynn89
Commit: c9cbaeb59d
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 ✅
10 changed files with 32 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
asyncTest(done => {
|
||||
const data = "param-a=value-a¶m-b=value-b¶m-c=value-c1¶m-c=value-c2";
|
||||
const response = new Response(data, {
|
||||
headers: {
|
||||
|
@ -12,6 +12,7 @@
|
|||
println(formData.get("param-a"));
|
||||
println(formData.get("param-b"));
|
||||
println(formData.getAll("param-c"));
|
||||
done();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue