Index: sky/tests/framework/xmlhttprequest/responseType.sky |
diff --git a/sky/tests/framework/xmlhttprequest/responseType.sky b/sky/tests/framework/xmlhttprequest/responseType.sky |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5153093f5b9159503f5cdc948043e8951df21416 |
--- /dev/null |
+++ b/sky/tests/framework/xmlhttprequest/responseType.sky |
@@ -0,0 +1,20 @@ |
+<sky> |
+<import src="/sky/tests/resources/chai.sky" /> |
+<import src="/sky/tests/resources/mocha.sky" /> |
+<import src="/sky/framework/xmlhttprequest.sky" as="XMLHttpRequest" /> |
+<script> |
+describe("xmlhttprequest.responseType", function() { |
+ this.enableTimeouts(false); |
+ |
+ it("should support arraybuffer", function() { |
+ var xhr = new XMLHttpRequest(); |
+ xhr.onload = function() { |
+ assert.typeOf(this.response, "arraybuffer", "Response is an arraybuffer\n"); |
+ done(); |
+ }; |
+ xhr.open("GET", "resources/pass.txt"); |
+ xhr.send(); |
+ }); |
+}); |
+</script> |
+</sky> |