Update unit tests
authorMichael Ang <mang@archive.org>
Mon, 23 May 2011 17:14:14 +0000 (17:14 +0000)
committerMichael Ang <mang@archive.org>
Mon, 23 May 2011 17:14:14 +0000 (17:14 +0000)
BookReaderIA/test/unit/Images.js

index 0a2919c..14fb114 100644 (file)
@@ -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');
     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);
         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');
     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);
         start();
     })
     .attr('src', pageURI);