mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-09 08:35:47 +02:00
Updated Contributing (markdown)
parent
c47467dd05
commit
c5d8588a18
@ -113,7 +113,7 @@ npx gulp test
|
|||||||
If you wish to add a reference test for your patch, you can place the file (`foo.pdf` in this example) in the `test/pdfs` directory and run the following script from the PDF.js root folder to add it to the suite:
|
If you wish to add a reference test for your patch, you can place the file (`foo.pdf` in this example) in the `test/pdfs` directory and run the following script from the PDF.js root folder to add it to the suite:
|
||||||
|
|
||||||
```
|
```
|
||||||
node test/add_test.js test/pdfs/foo.pdf
|
node test/add_test.mjs test/pdfs/foo.pdf
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that this script only supports adding `eq` tests for all pages of the PDF file. If you need a different type or page range, you'll need to update the `test/test_manifest.json` file afterwards.
|
Note that this script only supports adding `eq` tests for all pages of the PDF file. If you need a different type or page range, you'll need to update the `test/test_manifest.json` file afterwards.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user