[Pkg-javascript-commits] [pdf.js] 51/161: Fix coding style in test/unit/stream_spec.js

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 14:16:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 9dfc26e1e36272366288aa85047dcf69f15a0f50
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Fri Mar 14 15:31:00 2014 +0100

    Fix coding style in test/unit/stream_spec.js
---
 test/unit/stream_spec.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/test/unit/stream_spec.js b/test/unit/stream_spec.js
index 443ae6a..df0278d 100644
--- a/test/unit/stream_spec.js
+++ b/test/unit/stream_spec.js
@@ -9,12 +9,14 @@ describe('stream', function() {
     this.addMatchers({
       toMatchTypedArray: function(expected) {
         var actual = this.actual;
-        if (actual.length != expected.length)
+        if (actual.length != expected.length) {
           return false;
+        }
         for (var i = 0, ii = expected.length; i < ii; i++) {
           var a = actual[i], b = expected[i];
-          if (a !== b)
+          if (a !== b) {
             return false;
+          }
         }
         return true;
       }
@@ -29,7 +31,7 @@ describe('stream', function() {
       dict.set('Columns', 2);
 
       var input = new Stream(new Uint8Array([2, 100, 3, 2, 1, 255, 2, 1, 255]),
-        0, 9, dict);
+                             0, 9, dict);
       var predictor = new PredictorStream(input, /* length = */ 9, dict);
       var result = predictor.getBytes(6);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list