| <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::ol[1]/li[4] following::ol[1]/li[4]/dl[1]/dd[1]"/> |
| <link rel="help" href="https://xhr.spec.whatwg.org/#the-status-attribute" data-tested-assertations="following::ol[1]/li[3]"/> |
| <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: ArrayBuffer data</title> |
| <script type="text/javascript"> |
| var xhr = new XMLHttpRequest(); |
| var buf = new ArrayBuffer(5); |
| var arr = new Uint8Array(buf); |
| xhr.onreadystatechange = function() |
| assert_equals(xhr.status, 200); |
| assert_equals(xhr.response, "Hello"); |
| xhr.open("POST", "./resources/content.py", true); |