Closes #14, closes #15. Fix recovery path used when jp2 is requested at less than...
[bookreader.git] / BookReaderIA / test / unit / Preview.js
index 8e095bc..468867c 100644 (file)
@@ -4,7 +4,7 @@
 
 module("Preview");
 
-function Book(identifier, previewWidth, coverWidth, titleWidth, bookId) {
+function Book(identifier, previewWidth, coverWidth, titleWidth, imageSize, bookId) {
     this.identifier = identifier;
     this.previewWidth = previewWidth;
     this.coverWidth = coverWidth;
@@ -16,9 +16,14 @@ function Book(identifier, previewWidth, coverWidth, titleWidth, bookId) {
 }
 
 var books = [
-    new Book('coloritsapplicat00andriala', 1974, 2346, 1974),
-    new Book('lietuvostsrmoksl50liet', 1887, 1747, 1887),
-    new Book('oldtestamentrevi02slsn', 2019, 2371, 2019),
+    // Old books using title page as cover (ignoring marked cover)
+    new Book('coloritsapplicat00andriala', 1974, 1974, 1974),
+    new Book('lietuvostsrmoksl50liet', 1887, 1887, 1887),
+    new Book('oldtestamentrevi02slsn', 2019, 2019, 2019),
+    
+    // Protected book with marked cover returned as cover
+    new Book('joyofsoaringtrai00conw', 2571, 2571, 2419)
+    
 ];
 
 for (index in books) {