Skip to content

Commit

Permalink
Fix a couple of bugs affecting benchmarking
Browse files Browse the repository at this point in the history
 - 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.
  • Loading branch information
Snuffleupagus committed Nov 17, 2024
1 parent a719c3c commit 729e319
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ external/bcmaps/
external/builder/fixtures/
external/builder/fixtures_babel/
external/quickjs/
test/stats/results/
test/tmp/
test/pdfs/
web/locale/
Expand Down
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ external/bcmaps/
external/builder/fixtures/
external/builder/fixtures_babel/
external/quickjs/
test/stats/results/
test/tmp/
test/pdfs/
web/locale/
Expand Down
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default [
"external/builder/fixtures_babel/",
"external/quickjs/",
"external/openjpeg/",
"test/stats/results/",
"test/tmp/",
"test/pdfs/",
"web/locale/",
Expand Down
2 changes: 1 addition & 1 deletion src/pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const pdfjsVersion =
const pdfjsBuild =
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 = {
HighlightOutliner,
};
Expand Down

0 comments on commit 729e319

Please sign in to comment.