mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-14 15:13:07 +00:00
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.
18 lines
567 B
HTML
18 lines
567 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
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: {
|
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
},
|
|
});
|
|
|
|
response.formData().then((formData) => {
|
|
println(formData.get("param-a"));
|
|
println(formData.get("param-b"));
|
|
println(formData.getAll("param-c"));
|
|
done();
|
|
});
|
|
});
|
|
</script>
|