[Pkg-javascript-commits] [pdf.js] 55/161: Fix coding style in test/unit/crypto_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 9e3f7e4d6d8d6a29bee4cd37b4eb593fe74b5062
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Fri Mar 14 15:41:12 2014 +0100
Fix coding style in test/unit/crypto_spec.js
---
test/unit/crypto_spec.js | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/test/unit/crypto_spec.js b/test/unit/crypto_spec.js
index 5e5e013..e17f2b1 100644
--- a/test/unit/crypto_spec.js
+++ b/test/unit/crypto_spec.js
@@ -9,8 +9,9 @@ describe('crypto', function() {
function string2binary(s) {
var n = s.length, i;
var result = new Uint8Array(n);
- for (i = 0; i < n; ++i)
+ for (i = 0; i < n; ++i) {
result[i] = s.charCodeAt(i) % 0xFF;
+ }
return result;
}
@@ -226,19 +227,19 @@ describe('CipherTransformFactory', function() {
describe('#ctor', function() {
it('should accept user password', function() {
var factory = new CipherTransformFactory(new DictMock(map1), fileID1,
- '123456');
+ '123456');
});
it('should accept owner password', function() {
var factory = new CipherTransformFactory(new DictMock(map1), fileID1,
- '654321');
+ '654321');
});
it('should not accept wrong password', function() {
var thrown = false;
try {
var factory = new CipherTransformFactory(new DictMock(map1), fileID1,
- 'wrong');
+ 'wrong');
} catch (e) {
thrown = 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