mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08: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
3
make.js
3
make.js
|
@ -1249,6 +1249,7 @@ target.unittest = function(options, callback) {
|
|||
echo();
|
||||
echo('### Running unit tests');
|
||||
|
||||
var PDF_TEST = env['PDF_TEST'] || 'test_manifest.json';
|
||||
var PDF_BROWSERS = env['PDF_BROWSERS'] ||
|
||||
'resources/browser_manifests/browser_manifest.json';
|
||||
|
||||
|
@ -1260,7 +1261,7 @@ target.unittest = function(options, callback) {
|
|||
callback = callback || function() {};
|
||||
cd('test');
|
||||
exec('node test.js --unitTest --browserManifestFile=' +
|
||||
PDF_BROWSERS, {async: true}, callback);
|
||||
PDF_BROWSERS + ' --manifestFile=' + PDF_TEST, {async: true}, callback);
|
||||
};
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue