1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-21 20:50:07 +00:00
This commit is contained in:
Lu Wang 2014-11-19 01:05:26 +08:00
parent 1aaec6192d
commit 9071000839
3 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@ before_install:
- sudo add-apt-repository ppa:fontforge/fontforge --yes
- sudo add-apt-repository ppa:coolwanglu/pdf2htmlex --yes
- 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
- export DISPLAY=:99.0
- test/start_xvfb.sh

View File

@ -12,10 +12,11 @@
- Run selected test suites:
- `./test.py test_local_browser`
- 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:
- set `P2H_TEST_SAVE_TMP=1` to keep the temporary files
- set `P2H_TEST_GEN=1` to generate new reference images instead of comparing with old ones
- set `P2H_TEST_SAVE_TMP=1` to keep the temporary files in `/tmp/pdf2htmlEX_test`
- set `P2H_TEST_GEN=1` to generate new reference files
### Guidelines for test cases

View File

@ -13,7 +13,6 @@ class BrowserTests(Common):
DEFAULT_PDF2HTMLEX_ARGS = [
'--fit-width', 800,
'--last-page', 1,
'--correct-text-visibility', 1,
'--embed', 'fi', # avoid base64 to make it faster
]
@ -81,5 +80,5 @@ class BrowserTests(Common):
self.run_test_case('geneve_1564.pdf')
def test_text_visibility(self):
self.run_test_case('text_visibility.pdf')
self.run_test_case('text_visibility.pdf', ['--correct-text-visibility', 1])