mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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
|
@ -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);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue