]> git.parisson.com Git - pdf.js.git/commitdiff
add ?file= parameter to test.html
authorAndreas Gal <andreas.gal@gmail.com>
Fri, 10 Jun 2011 01:06:01 +0000 (18:06 -0700)
committerAndreas Gal <andreas.gal@gmail.com>
Fri, 10 Jun 2011 01:06:01 +0000 (18:06 -0700)
test.html

index 09ccf62d2b972ef54c9c2cb65835528ac49d581d..f78f22ce24387aaab0e2e025b1054c54953879b4 100644 (file)
--- a/test.html
+++ b/test.html
@@ -52,7 +52,8 @@ function load() {
     pageDisplay = document.getElementById("pageNumber");
     infoDisplay = document.getElementById("info");
     pageNum = parseInt(queryParams().page) || 1;
-    open("compressed.tracemonkey-pldi-09.pdf");
+    fileName = queryParams().file || "compressed.tracemonkey-pldi-09.pdf";
+    open(fileName);
 }
 
 function open(url) {