diff options
| author | Andreas Politz <politza@hochschule-trier.de> | 2017-09-12 15:42:59 +0200 |
|---|---|---|
| committer | Andreas Politz <politza@hochschule-trier.de> | 2017-09-12 16:11:21 +0200 |
| commit | 8041fff63d092bc88765089c8a6dbc3b288f9fa0 (patch) | |
| tree | cdb52ba6013497d0b9cee6ec3d6fff49ecdf8736 /test/pdf-view-test.el | |
| parent | e699e3f0889394cbb7679bc1d5c430f8e0d766b1 (diff) | |
Merge pull request 174
Diffstat (limited to 'test/pdf-view-test.el')
| -rw-r--r-- | test/pdf-view-test.el | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/pdf-view-test.el b/test/pdf-view-test.el new file mode 100644 index 0000000..58f6be5 --- /dev/null +++ b/test/pdf-view-test.el @@ -0,0 +1,19 @@ +;; -*- lexical-binding: t -*- + +(require 'pdf-view) +(require 'ert) + +(ert-deftest pdf-view-handle-archived-file () + :expected-result :failed + (skip-unless (executable-find "gzip")) + (let ((tramp-verbose 0) + (temp + (make-temp-file "pdf-test"))) + (unwind-protect + (progn + (copy-file "test.pdf" temp t) + (call-process "gzip" nil nil nil temp) + (setq temp (concat temp ".gz")) + (should (numberp (pdf-info-number-of-pages temp))))) + (when (file-exists-p temp) + (delete-file temp)))) |
