Merge branch 'master' into jp2levels
[bookreader.git] / BookReaderIA / test / unit / Images.js
index bf87e3c..8510f92 100644 (file)
@@ -5,7 +5,8 @@
 module("Images");
 
 // $$$ set to test host
-var testHost = 'http://www-mang.archive.org';
+var testHost = 'http://www-testflip.archive.org';
+//var testHost = 'http://www-mang.archive.org';
 
 // Returns locator URL for the given id
 function jsLocateURL(identifier, book) {
@@ -138,7 +139,7 @@ asyncTest("Load 1-bit 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, 318, 'Image width');
+        equals(this.width, 1272, 'Image width');
         start();
     })
     .attr('src', pageURI);
@@ -178,7 +179,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, 351, 'Image width');
+        equals(this.width, 702, 'Image width');
         start();
     })
     .attr('src', pageURI);