Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444

This commit is contained in:
Josh Matthews 2017-04-17 12:06:02 +10:00 committed by Anthony Ramine
parent 25e8bf69e6
commit 665817d2a6
35333 changed files with 1818077 additions and 16036 deletions

View file

@ -6,7 +6,7 @@
<link rel="help" href="https://xhr.spec.whatwg.org/#the-response-attribute" data-tested-assertations="following::ol[1]/li[3]"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<title>XmlHttpRequest: The send() method: FormData data</title>
<title>XMLHttpRequest: The send() method: FormData data</title>
</head>
<body>
@ -22,18 +22,13 @@
form.append("id", "0");
form.append("value", "zero");
xhr.onreadystatechange = function()
{
test.step(function ()
{
if (xhr.readyState == 4)
{
assert_equals(xhr.status, 200);
assert_equals(xhr.response, "id:0;value:zero;");
test.done();
}
});
};
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);