From: Michael Ang Date: Mon, 23 May 2011 17:14:14 +0000 (+0000) Subject: Update unit tests X-Git-Url: http://git.rot13.org/?p=bookreader.git;a=commitdiff_plain;h=5932f65b90d5b5434c73c5b1181f7d829b6a5809 Update unit tests --- diff --git a/BookReaderIA/test/unit/Images.js b/BookReaderIA/test/unit/Images.js index 0a2919c..14fb114 100644 --- a/BookReaderIA/test/unit/Images.js +++ b/BookReaderIA/test/unit/Images.js @@ -157,7 +157,7 @@ asyncTest("Load tiff image from zip", function() { var img = new Image(); $(img).bind( 'load error', function(eventObj) { equals(eventObj.type, 'load', 'Load image (' + pageURI + '). Event handler called'); - equals(this.width, 702, 'Image width'); + equals(this.width, 701, 'Image width'); start(); }) .attr('src', pageURI); @@ -179,7 +179,7 @@ asyncTest('Load jpg image from tar file - https://bugs.launchpad.net/bookreader/ var img = new Image(); $(img).bind( 'load error', function(eventObj) { equals(eventObj.type, 'load', 'Load image (' + pageURI + '). Event handler called'); - equals(this.width, 244, 'Image width'); + equals(this.width, 243, 'Image width'); start(); }) .attr('src', pageURI);