From b07effde8a5c820629d5d48abb21d2ffd7777c75 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Sun, 7 Aug 2011 22:02:17 +0100 Subject: fix some tests in IE --- jarmon/jarmon.js | 2 +- jarmon/jarmon.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js index 0467ade..27d82a1 100644 --- a/jarmon/jarmon.js +++ b/jarmon/jarmon.js @@ -263,7 +263,7 @@ jarmon.downloadBinary = function(url) { } }, error: function(xhr, textStatus, errorThrown) { - d.reject(new Error(xhr.status)); + d.reject(new Error(textStatus + ':' + xhr.status)); } }); return d; diff --git a/jarmon/jarmon.test.js b/jarmon/jarmon.test.js index 90eb28a..6370740 100644 --- a/jarmon/jarmon.test.js +++ b/jarmon/jarmon.test.js @@ -19,7 +19,7 @@ YUI({ logInclude: { TestRunner: true } }).use('console', 'test', function(Y) { function(ret) { self.resume(function() { Y.Assert.isInstanceOf(Error, ret); - Y.Assert.areEqual(404, ret.message); + Y.Assert.areEqual('error:404', ret.message); }); }); @@ -38,7 +38,7 @@ YUI({ logInclude: { TestRunner: true } }).use('console', 'test', function(Y) { self.resume(function() { Y.Assert.isInstanceOf(jarmon.BinaryFile, ret); Y.Assert.areEqual( - String.fromCharCode(0), ret.getRawData()); + String.fromCharCode(0), ret.getCharAt(0)); }); }); -- cgit v1.1-4-g5e80