UI testing part is separated from pdf.ts to this project.
Cypress is used to do UI testing.
- Extract @mymain onto /path_to/TypeScript
 - 
cd /path_to/TypeScript npm i hereby LKG - Extract pdf.ts onto /path_to/foo/pdf.ts
 - Extract this project onto /path_to/foo/pdf.ts_ui-testing
 - 
cd /path_to/foo/pdf.ts_ui-testing npm i 
"pdf.ts" and "pdf.ts_ui-testing" MUST be in the same folder. Name "foo" is irrelevant.
- 
cd /path_to/pdf.ts/src/test deno task server - 
cd /path_to/foo/pdf.ts_ui-testing deno run --allow-read --allow-run util/unittest.ts --tsc "/path_to/TypeScript/bin/tsc"
 
- 
cd /path_to/pdf.ts/src/test deno task server - 
cd /path_to/foo/pdf.ts_ui-testing deno run --allow-read --allow-run util/integrationtest.ts --tsc "/path_to/TypeScript/bin/tsc"
 
- Extract pdf.js-4.5.136 onto
/path_to/pdf.js, and run 
gulp makerefthere. - 
ln -f -s /path_to/pdf.js/test/tmp /path_to/foo/pdf.ts/res/pdf/test/ref cd /path_to/foo/pdf.ts/src/test deno task pdfref - 
cd /path_to/foo/pdf.ts_ui-testing deno run --allow-read --allow-run util/build.ts --tsc "/path_to/TypeScript/bin/tsc"
 - Visit
http://localhost:8051/src/pdf/pdf.ts-test/test_slave.html
in chrome or edge
(DO NOT zoom page) 
- 
cd /path_to/foo/pdf.ts/src/test deno task server - 
cd /path_to/foo/pdf.ts_ui-testing deno run --allow-read --allow-run util/build.ts --tsc "/path_to/TypeScript/bin/tsc" npx cypress open
 
- Browser: chrome
 - unittest: 40 / 47 (85.1%)
 - integrationtest: 14 / 200 (7%)
 - reftest: 3 / 1070 (0.3%)