Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(761)

Unified Diff: sky/tests/framework/xmlhttprequest/responseType.sky

Issue 808663002: Revert "Add POST support to XHR as well as .status and statusText support" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/tests/framework/xmlhttprequest/responseType.sky
diff --git a/sky/tests/framework/xmlhttprequest/responseType.sky b/sky/tests/framework/xmlhttprequest/responseType.sky
index f220009b87804b043aebf6269dca977e7c0081d4..5153093f5b9159503f5cdc948043e8951df21416 100644
--- a/sky/tests/framework/xmlhttprequest/responseType.sky
+++ b/sky/tests/framework/xmlhttprequest/responseType.sky
@@ -4,11 +4,12 @@
<import src="/sky/framework/xmlhttprequest.sky" as="XMLHttpRequest" />
<script>
describe("xmlhttprequest.responseType", function() {
- it("should support arraybuffer", function(done) {
+ this.enableTimeouts(false);
+
+ it("should support arraybuffer", function() {
var xhr = new XMLHttpRequest();
- xhr.responseType = 'arraybuffer';
xhr.onload = function() {
- assert.instanceOf(xhr.response, ArrayBuffer, "Response is an ArrayBuffer\n");
+ assert.typeOf(this.response, "arraybuffer", "Response is an arraybuffer\n");
done();
};
xhr.open("GET", "resources/pass.txt");
« no previous file with comments | « sky/tests/framework/xmlhttprequest/empty-responseType.sky ('k') | sky/tests/framework/xmlhttprequest/unicode-post.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698