mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 23:28:06 +02:00
Allow unit-tests to use linked PDF files, by having the unittest
command download unavailable ones (issue 7117)
This commit is contained in:
parent
df7afcf004
commit
8f097abb46
2 changed files with 5 additions and 2 deletions
|
@ -730,7 +730,9 @@ function main() {
|
|||
} else if (!options.browser && !options.browserManifestFile) {
|
||||
startServer();
|
||||
} else if (options.unitTest) {
|
||||
startUnitTest('/test/unit/unit_test.html', 'unit');
|
||||
ensurePDFsDownloaded(function() { // Allows linked PDF files in unit-tests.
|
||||
startUnitTest('/test/unit/unit_test.html', 'unit');
|
||||
});
|
||||
} else if (options.fontTest) {
|
||||
startUnitTest('/test/font/font_test.html', 'font');
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue