blob: 58f6be5afc59351a5d292567069bd3b4da5762b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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))))
|