]> git.parisson.com Git - pdf.js.git/commitdiff
Refactor the lines that are over 80 characters long in driver.js.
authorKalervo Kujala <kkujala@>
Thu, 11 Aug 2011 22:00:32 +0000 (01:00 +0300)
committerKalervo Kujala <kkujala@>
Thu, 11 Aug 2011 22:00:32 +0000 (01:00 +0300)
test/driver.js

index 5c091a2cee332dcf5edd065d441cd75d58be64a1..0601777a8e60aa8968e16cdc20c3832b62350bb4 100644 (file)
@@ -32,7 +32,8 @@ function load() {
 
     log('load...\n');
 
-    log('Harness thinks this browser is "' + browser + '" with path "' + appPath + '"\n');
+    log('Harness thinks this browser is "' + browser + '" with path "' +
+        appPath + '"\n');
     log('Fetching manifest "' + manifestFile + '"... ');
 
     var r = new XMLHttpRequest();
@@ -99,7 +100,8 @@ function nextPage(task, loadError) {
     var page = null;
     if (!failure) {
         try {
-            log(' loading page ' + task.pageNum + '/' + task.pdfDoc.numPages + '... ');
+            log(' loading page ' + task.pageNum + '/' + task.pdfDoc.numPages +
+                '... ');
             ctx = canvas.getContext('2d');
             page = task.pdfDoc.getPage(task.pageNum);
 
@@ -114,8 +116,8 @@ function nextPage(task, loadError) {
             page.startRendering(
               ctx,
               function(e) {
-                snapshotCurrentPage(page, task,
-                                    (!failure && e) ? ('render : ' + e) : failure);
+                snapshotCurrentPage(page, task, (!failure && e) ?
+                                                ('render : ' + e) : failure);
               });
         } catch (e) {
             failure = 'page setup : ' + e.toString();