mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 06:38:07 +02:00
Fix a couple of bugs affecting benchmarking
- Ensure that `pdfjsTestingUtils` is available when running benchmarking, since that shouldn't be done in TESTING-mode. - Exclude the `test/stats/results/` folder from linting, since it'll contain *generated* JSON-files.
This commit is contained in:
parent
a719c3c067
commit
729e3190eb
4 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,7 @@ external/bcmaps/
|
||||||
external/builder/fixtures/
|
external/builder/fixtures/
|
||||||
external/builder/fixtures_babel/
|
external/builder/fixtures_babel/
|
||||||
external/quickjs/
|
external/quickjs/
|
||||||
|
test/stats/results/
|
||||||
test/tmp/
|
test/tmp/
|
||||||
test/pdfs/
|
test/pdfs/
|
||||||
web/locale/
|
web/locale/
|
||||||
|
|
|
@ -6,6 +6,7 @@ external/bcmaps/
|
||||||
external/builder/fixtures/
|
external/builder/fixtures/
|
||||||
external/builder/fixtures_babel/
|
external/builder/fixtures_babel/
|
||||||
external/quickjs/
|
external/quickjs/
|
||||||
|
test/stats/results/
|
||||||
test/tmp/
|
test/tmp/
|
||||||
test/pdfs/
|
test/pdfs/
|
||||||
web/locale/
|
web/locale/
|
||||||
|
|
|
@ -35,6 +35,7 @@ export default [
|
||||||
"external/builder/fixtures_babel/",
|
"external/builder/fixtures_babel/",
|
||||||
"external/quickjs/",
|
"external/quickjs/",
|
||||||
"external/openjpeg/",
|
"external/openjpeg/",
|
||||||
|
"test/stats/results/",
|
||||||
"test/tmp/",
|
"test/tmp/",
|
||||||
"test/pdfs/",
|
"test/pdfs/",
|
||||||
"web/locale/",
|
"web/locale/",
|
||||||
|
|
|
@ -80,7 +80,7 @@ const pdfjsVersion =
|
||||||
const pdfjsBuild =
|
const pdfjsBuild =
|
||||||
typeof PDFJSDev !== "undefined" ? PDFJSDev.eval("BUNDLE_BUILD") : void 0;
|
typeof PDFJSDev !== "undefined" ? PDFJSDev.eval("BUNDLE_BUILD") : void 0;
|
||||||
|
|
||||||
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("TESTING")) {
|
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("TESTING || GENERIC")) {
|
||||||
globalThis.pdfjsTestingUtils = {
|
globalThis.pdfjsTestingUtils = {
|
||||||
HighlightOutliner,
|
HighlightOutliner,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue