[Pkg-javascript-commits] [pdf.js] 53/161: Fix coding style in test/unit/function_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 3cd64a85ba9082587fd2b69a6ca1d84b6adb3cae
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Fri Mar 14 15:35:04 2014 +0100
Fix coding style in test/unit/function_spec.js
---
test/unit/function_spec.js | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/test/unit/function_spec.js b/test/unit/function_spec.js
index fd61b1a..10d0a38 100644
--- a/test/unit/function_spec.js
+++ b/test/unit/function_spec.js
@@ -10,21 +10,25 @@ describe('function', function() {
this.addMatchers({
toMatchArray: function(expected) {
var actual = this.actual;
- if (actual.length != expected.length)
+ if (actual.length != expected.length) {
return false;
+ }
for (var i = 0; i < expected.length; i++) {
var a = actual[i], b = expected[i];
if (isArray(b)) {
- if (a.length != b.length)
+ if (a.length != b.length) {
return false;
+ }
for (var j = 0; j < a.length; j++) {
var suba = a[j], subb = b[j];
- if (suba !== subb)
+ if (suba !== subb) {
return false;
+ }
}
} else {
- if (a !== b)
+ if (a !== b) {
return false;
+ }
}
}
return true;
--
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