mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision b7a8b84debb42268ea95a45bdad8f727d1facdf7
This commit is contained in:
parent
ba929208e4
commit
953dbda9a6
215 changed files with 6409 additions and 1644 deletions
21
tests/wpt/web-platform-tests/xhr/send-data-formdata.any.js
Normal file
21
tests/wpt/web-platform-tests/xhr/send-data-formdata.any.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
// META: title=XMLHttpRequest.send(formdata)
|
||||
|
||||
var test = async_test();
|
||||
test.step(function()
|
||||
{
|
||||
var xhr = new XMLHttpRequest();
|
||||
var form = new FormData();
|
||||
form.append("id", "0");
|
||||
form.append("value", "zero");
|
||||
|
||||
xhr.onreadystatechange = test.step_func(() => {
|
||||
if (xhr.readyState == 4) {
|
||||
assert_equals(xhr.status, 200);
|
||||
assert_equals(xhr.response, "id:0;value:zero;");
|
||||
test.done();
|
||||
}
|
||||
});
|
||||
|
||||
xhr.open("POST", "./resources/form.py", true);
|
||||
xhr.send(form);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue