This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
zotero
Watch
2
Star
0
Fork
You've already forked zotero
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
82e7f67df8
zotero
/
test
/
tests
/
preferences_searchTest.js
6 lines
93 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Update PDF tool handling in tests The test runner now downloads and caches the PDF tools for the current platform within the test data directory and only redownloads them when out of date, and it updates the download URL so that the full-text code pulls from the cache directory via a file:// URL. The installPDFTools() support function now installs the files directly instead of going through the prefs, and a new uninstallPDFTools() function removes the tools. Since the presence of the PDF tools can affect other tests, tests that need the tools should install them in a before() and uninstall them in an after(), leaving most tests to run without PDF indexing. This also adds a callback to the waitForWindow() support function. If a modal dialog is opened, it blocks the next promise handler from running, so a callback has to be used to interact with and close the dialog immediately.
2015-06-01 03:07:24 +00:00
describe
(
"Search Preferences"
,
function
(
)
{
describe
(
"PDF Indexing"
,
function
(
)
{
Use the bundled PDF tools
2018-01-15 17:09:38 +00:00
Update PDF tool handling in tests The test runner now downloads and caches the PDF tools for the current platform within the test data directory and only redownloads them when out of date, and it updates the download URL so that the full-text code pulls from the cache directory via a file:// URL. The installPDFTools() support function now installs the files directly instead of going through the prefs, and a new uninstallPDFTools() function removes the tools. Since the presence of the PDF tools can affect other tests, tests that need the tools should install them in a before() and uninstall them in an after(), leaving most tests to run without PDF indexing. This also adds a callback to the waitForWindow() support function. If a modal dialog is opened, it blocks the next promise handler from running, so a callback has to be used to interact with and close the dialog immediately.
2015-06-01 03:07:24 +00:00
}
)
}
)
Reference in a new issue
Copy permalink