Update web-platform-tests to revision b7a8b84debb42268ea95a45bdad8f727d1facdf7

This commit is contained in:
WPT Sync Bot 2019-03-21 21:40:20 -04:00
parent ba929208e4
commit 953dbda9a6
215 changed files with 6409 additions and 1644 deletions

View file

@ -0,0 +1,18 @@
// META: title=XMLHttpRequest.send(arraybufferview)
var test = async_test();
test.step(function()
{
var str = "Hello";
var bytes = str.split("").map(function(ch) { return ch.charCodeAt(0); });
var xhr = new XMLHttpRequest();
var arr = new Uint8Array(bytes);
xhr.onload = test.step_func_done(function() {
assert_equals(xhr.status, 200);
assert_equals(xhr.response, str);
});
xhr.open("POST", "./resources/content.py", true);
xhr.send(arr);
});