mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
..
This commit is contained in:
parent
1aaec6192d
commit
9071000839
@ -4,7 +4,7 @@ before_install:
|
|||||||
- sudo add-apt-repository ppa:fontforge/fontforge --yes
|
- sudo add-apt-repository ppa:fontforge/fontforge --yes
|
||||||
- sudo add-apt-repository ppa:coolwanglu/pdf2htmlex --yes
|
- sudo add-apt-repository ppa:coolwanglu/pdf2htmlex --yes
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
- sudo apt-get install -qq libpoppler-dev libpoppler-private-dev libspiro-dev libcairo-dev libpango1.0-dev libfreetype6-dev libltdl-dev libfontforge-dev python-imaging python-pip ttfautohint firefox xvfb
|
- sudo apt-get install -qq libpoppler-dev libpoppler-private-dev libspiro-dev libcairo-dev libpango1.0-dev libfreetype6-dev libltdl-dev libfontforge-dev python-imaging python-pip firefox xvfb
|
||||||
- sudo pip install selenium
|
- sudo pip install selenium
|
||||||
- export DISPLAY=:99.0
|
- export DISPLAY=:99.0
|
||||||
- test/start_xvfb.sh
|
- test/start_xvfb.sh
|
||||||
|
@ -12,10 +12,11 @@
|
|||||||
- Run selected test suites:
|
- Run selected test suites:
|
||||||
- `./test.py test_local_browser`
|
- `./test.py test_local_browser`
|
||||||
- Run selected test case:
|
- Run selected test case:
|
||||||
- `./test.py test_basic_text
|
- `./test.py test_local_browser.test_basic_text`
|
||||||
|
- Or `./test.py test_basic_text
|
||||||
- Environment variables:
|
- Environment variables:
|
||||||
- set `P2H_TEST_SAVE_TMP=1` to keep the temporary files
|
- set `P2H_TEST_SAVE_TMP=1` to keep the temporary files in `/tmp/pdf2htmlEX_test`
|
||||||
- set `P2H_TEST_GEN=1` to generate new reference images instead of comparing with old ones
|
- set `P2H_TEST_GEN=1` to generate new reference files
|
||||||
|
|
||||||
### Guidelines for test cases
|
### Guidelines for test cases
|
||||||
|
|
||||||
|
@ -13,7 +13,6 @@ class BrowserTests(Common):
|
|||||||
DEFAULT_PDF2HTMLEX_ARGS = [
|
DEFAULT_PDF2HTMLEX_ARGS = [
|
||||||
'--fit-width', 800,
|
'--fit-width', 800,
|
||||||
'--last-page', 1,
|
'--last-page', 1,
|
||||||
'--correct-text-visibility', 1,
|
|
||||||
'--embed', 'fi', # avoid base64 to make it faster
|
'--embed', 'fi', # avoid base64 to make it faster
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -81,5 +80,5 @@ class BrowserTests(Common):
|
|||||||
self.run_test_case('geneve_1564.pdf')
|
self.run_test_case('geneve_1564.pdf')
|
||||||
|
|
||||||
def test_text_visibility(self):
|
def test_text_visibility(self):
|
||||||
self.run_test_case('text_visibility.pdf')
|
self.run_test_case('text_visibility.pdf', ['--correct-text-visibility', 1])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user