blob: 815c64da12b9f1ded5bf896bc5abe71e5ac049bf [file] [log] [blame]
<html>
<body>
Tests sending an array buffer view.
<script>
if (window.testRunner)
testRunner.dumpAsText();
var console_messages = document.createElement("ul");
document.body.appendChild(console_messages);
function log(message)
{
var item = document.createElement("li");
item.appendChild(document.createTextNode(message));
console_messages.appendChild(item);
}
var array = new Uint8Array([0, 1, 2, 48, 49, 50, 128, 129, 130, 253, 254, 255]);
var xhr = new XMLHttpRequest;
xhr.open("POST", "resources/post-echo-as-ascii.cgi", false);
xhr.send(array);
log(xhr.responseText);
</script>
</body>
</html>