]> git.parisson.com Git - pdf.js.git/commitdiff
Add firstPage option to tasks to speed up testing certain pages
authorJulian Viereck <julian.viereck@gmail.com>
Fri, 16 Sep 2011 06:36:08 +0000 (23:36 -0700)
committerJulian Viereck <julian.viereck@gmail.com>
Fri, 16 Sep 2011 06:36:08 +0000 (23:36 -0700)
test/driver.js

index 3af8d3bcb14f7a6a4a4e2c5e13a117dcf9688540..d272aab69cba8596419fce50151788ef2ad3983b 100644 (file)
@@ -74,7 +74,7 @@ function nextTask() {
         failure = 'load PDF doc : ' + e.toString();
       }
 
-      task.pageNum = 1, nextPage(task, failure);
+      task.pageNum = task.firstPage || 1, nextPage(task, failure);
     }
   };
   r.send(null);