blob: a568841d6c5310a7979f9e1bef1b016823e7594f [file] [log] [blame]
<html>
<body>
Tests sending a data 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(new DataView(array.buffer));
log(xhr.responseText);
</script>
</body>
</html>