mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Adds ttx test harness
This commit is contained in:
parent
9d3afdd2e0
commit
5afec33956
6 changed files with 304 additions and 16 deletions
26
make.js
26
make.js
|
@ -664,7 +664,9 @@ target.test = function() {
|
|||
//
|
||||
target.bottest = function() {
|
||||
target.unittest({}, function() {
|
||||
target.browsertest({noreftest: true});
|
||||
target.fonttest({}, function() {
|
||||
target.browsertest({noreftest: true});
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -715,6 +717,28 @@ target.unittest = function(options, callback) {
|
|||
PDF_BROWSERS, {async: true}, callback);
|
||||
};
|
||||
|
||||
//
|
||||
// make fonttest
|
||||
//
|
||||
target.fonttest = function(options, callback) {
|
||||
cd(ROOT_DIR);
|
||||
echo();
|
||||
echo('### Running font tests');
|
||||
|
||||
var PDF_BROWSERS = env['PDF_BROWSERS'] ||
|
||||
'resources/browser_manifests/browser_manifest.json';
|
||||
|
||||
if (!test('-f', 'test/' + PDF_BROWSERS)) {
|
||||
echo('Browser manifest file test/' + PDF_BROWSERS + ' does not exist.');
|
||||
echo('Copy one of the examples in test/resources/browser_manifests/');
|
||||
exit(1);
|
||||
}
|
||||
callback = callback || function() {};
|
||||
cd('test');
|
||||
exec(PYTHON_BIN + ' -u test.py --fontTest --browserManifestFile=' +
|
||||
PDF_BROWSERS, {async: true}, callback);
|
||||
};
|
||||
|
||||
//
|
||||
// make botmakeref
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue