[Pkg-javascript-commits] [pdf.js] 138/210: Fix unit test for getDestinations
David Prévot
taffit at moszumanska.debian.org
Thu Jun 5 14:21:10 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch upstream
in repository pdf.js.
commit 3adab8b183e81a0aaffd6c85b0b9ab6613e89e43
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Wed May 14 12:54:18 2014 +0200
Fix unit test for getDestinations
---
test/unit/api_spec.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/unit/api_spec.js b/test/unit/api_spec.js
index ff22860..bb74d55 100644
--- a/test/unit/api_spec.js
+++ b/test/unit/api_spec.js
@@ -65,7 +65,8 @@ describe('api', function() {
it('gets destinations', function() {
var promise = doc.getDestinations();
waitsForPromise(promise, function(data) {
- // TODO this seems to be broken for the test pdf
+ expect(data).toEqual({ chapter1: [{ gen: 0, num: 17 }, { name: 'XYZ' },
+ 0, 841.89, null] });
});
});
it('gets outline', function() {
--
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