Browse Source

Switch to Playwright for Specs runner

Switch to module loading for tests and specs
Update specs to run in docker only
Update docker run test command
Update babel to output cjs
Update rollup input
Split out specs from test
Update readme
Add remaining spec snapshots
playwright_specs_runner
Fred Chasen 3 years ago
parent
commit
73ffb071da
  1. 12
      .eslintrc.json
  2. 3
      .gitlab-ci.yml
  3. 51
      Dockerfile
  4. 10
      README.md
  5. 24
      action.yml
  6. 4
      babel.config.json
  7. 5
      jest.config.js
  8. 14497
      package-lock.json
  9. 63
      package.json
  10. 4
      rollup.config.js
  11. BIN
      specs/bleed/__image_snapshots__/bleed-spec-js-bleed-should-create-a-pdf-1-snap.png
  12. BIN
      specs/bleed/__image_snapshots_mac__/bleed-spec-js-bleed-should-create-a-pdf-1-snap.png
  13. BIN
      specs/breaks/__image_snapshots__/breaks-spec-js-breaks-should-create-a-pdf-1-snap.png
  14. BIN
      specs/breaks/__image_snapshots__/breaks-spec-js-breaks-should-create-a-pdf-2-snap.png
  15. BIN
      specs/breaks/__image_snapshots_linux__/breaks-spec-js-breaks-should-create-a-pdf-2-snap.png
  16. BIN
      specs/breaks/__image_snapshots_mac__/breaks-spec-js-breaks-should-create-a-pdf-1-snap.png
  17. BIN
      specs/breaks/break-after/break-after-avoid/__image_snapshots__/breaks-after-avoid-spec-js-break-after-avoid-should-create-a-pdf-1-snap.png
  18. BIN
      specs/breaks/break-after/break-after-avoid/__image_snapshots_mac__/breaks-after-avoid-spec-js-break-after-avoid-should-create-a-pdf-1-snap.png
  19. BIN
      specs/breaks/break-after/break-after-left/__image_snapshots__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-1-snap.png
  20. BIN
      specs/breaks/break-after/break-after-left/__image_snapshots__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-2-snap.png
  21. BIN
      specs/breaks/break-after/break-after-left/__image_snapshots__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-3-snap.png
  22. BIN
      specs/breaks/break-after/break-after-left/__image_snapshots__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-4-snap.png
  23. BIN
      specs/breaks/break-after/break-after-left/__image_snapshots__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-5-snap.png
  24. BIN
      specs/breaks/break-after/break-after-left/__image_snapshots_linux__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-1-snap.png
  25. BIN
      specs/breaks/break-after/break-after-left/__image_snapshots_linux__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-2-snap.png
  26. BIN
      specs/breaks/break-after/break-after-left/__image_snapshots_linux__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-3-snap.png
  27. BIN
      specs/breaks/break-after/break-after-left/__image_snapshots_linux__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-4-snap.png
  28. BIN
      specs/breaks/break-after/break-after-left/__image_snapshots_mac__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-5-snap.png
  29. BIN
      specs/breaks/break-after/break-after-page/__image_snapshots__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-1-snap.png
  30. BIN
      specs/breaks/break-after/break-after-page/__image_snapshots__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-2-snap.png
  31. BIN
      specs/breaks/break-after/break-after-page/__image_snapshots__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-3-snap.png
  32. BIN
      specs/breaks/break-after/break-after-page/__image_snapshots__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-4-snap.png
  33. BIN
      specs/breaks/break-after/break-after-page/__image_snapshots__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-5-snap.png
  34. BIN
      specs/breaks/break-after/break-after-page/__image_snapshots_linux__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-1-snap.png
  35. BIN
      specs/breaks/break-after/break-after-page/__image_snapshots_linux__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-4-snap.png
  36. BIN
      specs/breaks/break-after/break-after-page/__image_snapshots_mac__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-2-snap.png
  37. BIN
      specs/breaks/break-after/break-after-page/__image_snapshots_mac__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-3-snap.png
  38. BIN
      specs/breaks/break-after/break-after-page/__image_snapshots_mac__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-5-snap.png
  39. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-1-snap.png
  40. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-2-snap.png
  41. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-3-snap.png
  42. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-4-snap.png
  43. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-5-snap.png
  44. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-6-snap.png
  45. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-7-snap.png
  46. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots_linux__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-1-snap.png
  47. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots_linux__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-4-snap.png
  48. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots_linux__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-6-snap.png
  49. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots_mac__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-2-snap.png
  50. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots_mac__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-3-snap.png
  51. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots_mac__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-5-snap.png
  52. BIN
      specs/breaks/break-after/break-after-recto/__image_snapshots_mac__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-7-snap.png
  53. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-1-snap.png
  54. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-2-snap.png
  55. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-3-snap.png
  56. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-4-snap.png
  57. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-5-snap.png
  58. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-6-snap.png
  59. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-7-snap.png
  60. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots_linux__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-1-snap.png
  61. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots_linux__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-4-snap.png
  62. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots_linux__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-6-snap.png
  63. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots_mac__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-2-snap.png
  64. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots_mac__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-3-snap.png
  65. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots_mac__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-5-snap.png
  66. BIN
      specs/breaks/break-after/break-after-right/__image_snapshots_mac__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-7-snap.png
  67. BIN
      specs/breaks/break-after/break-after-verso/__image_snapshots__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-1-snap.png
  68. BIN
      specs/breaks/break-after/break-after-verso/__image_snapshots__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-2-snap.png
  69. BIN
      specs/breaks/break-after/break-after-verso/__image_snapshots__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-3-snap.png
  70. BIN
      specs/breaks/break-after/break-after-verso/__image_snapshots__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-4-snap.png
  71. BIN
      specs/breaks/break-after/break-after-verso/__image_snapshots__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-5-snap.png
  72. BIN
      specs/breaks/break-after/break-after-verso/__image_snapshots_linux__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-2-snap.png
  73. BIN
      specs/breaks/break-after/break-after-verso/__image_snapshots_linux__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-4-snap.png
  74. BIN
      specs/breaks/break-after/break-after-verso/__image_snapshots_mac__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-1-snap.png
  75. BIN
      specs/breaks/break-after/break-after-verso/__image_snapshots_mac__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-3-snap.png
  76. BIN
      specs/breaks/break-after/break-after-verso/__image_snapshots_mac__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-5-snap.png
  77. BIN
      specs/breaks/break-before/break-before-avoid/__image_snapshots__/breaks-before-avoid-spec-js-break-before-avoid-should-create-a-pdf-1-snap.png
  78. BIN
      specs/breaks/break-before/break-before-avoid/__image_snapshots_mac__/breaks-before-avoid-spec-js-break-before-avoid-should-create-a-pdf-1-snap.png
  79. BIN
      specs/breaks/break-before/break-before-left/__image_snapshots__/break-before-left-spec-js-break-before-left-should-create-a-pdf-1-snap.png
  80. BIN
      specs/breaks/break-before/break-before-left/__image_snapshots__/break-before-left-spec-js-break-before-left-should-create-a-pdf-2-snap.png
  81. BIN
      specs/breaks/break-before/break-before-left/__image_snapshots__/break-before-left-spec-js-break-before-left-should-create-a-pdf-3-snap.png
  82. BIN
      specs/breaks/break-before/break-before-left/__image_snapshots__/break-before-left-spec-js-break-before-left-should-create-a-pdf-4-snap.png
  83. BIN
      specs/breaks/break-before/break-before-left/__image_snapshots_linux__/break-before-left-spec-js-break-before-left-should-create-a-pdf-3-snap.png
  84. BIN
      specs/breaks/break-before/break-before-left/__image_snapshots_mac__/break-before-left-spec-js-break-before-left-should-create-a-pdf-1-snap.png
  85. BIN
      specs/breaks/break-before/break-before-left/__image_snapshots_mac__/break-before-left-spec-js-break-before-left-should-create-a-pdf-2-snap.png
  86. BIN
      specs/breaks/break-before/break-before-left/__image_snapshots_mac__/break-before-left-spec-js-break-before-left-should-create-a-pdf-4-snap.png
  87. BIN
      specs/breaks/break-before/break-before-page/__image_snapshots__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-1-snap.png
  88. BIN
      specs/breaks/break-before/break-before-page/__image_snapshots__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-2-snap.png
  89. BIN
      specs/breaks/break-before/break-before-page/__image_snapshots__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-3-snap.png
  90. BIN
      specs/breaks/break-before/break-before-page/__image_snapshots__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-4-snap.png
  91. BIN
      specs/breaks/break-before/break-before-page/__image_snapshots_mac__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-1-snap.png
  92. BIN
      specs/breaks/break-before/break-before-page/__image_snapshots_mac__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-2-snap.png
  93. BIN
      specs/breaks/break-before/break-before-page/__image_snapshots_mac__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-3-snap.png
  94. BIN
      specs/breaks/break-before/break-before-page/__image_snapshots_mac__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-4-snap.png
  95. BIN
      specs/breaks/break-before/break-before-right/__image_snapshots__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-1-snap.png
  96. BIN
      specs/breaks/break-before/break-before-right/__image_snapshots__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-2-snap.png
  97. BIN
      specs/breaks/break-before/break-before-right/__image_snapshots__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-3-snap.png
  98. BIN
      specs/breaks/break-before/break-before-right/__image_snapshots__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-4-snap.png
  99. BIN
      specs/breaks/break-before/break-before-right/__image_snapshots__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-5-snap.png
  100. BIN
      specs/breaks/break-before/break-before-right/__image_snapshots__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-6-snap.png
  101. Some files were not shown because too many files have changed in this diff Show More

12
.eslintrc.js → .eslintrc.json

@ -1,17 +1,18 @@
module.exports = {
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jest": true
"jest": true,
"es2022": true
},
"globals": {
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 9
"ecmaVersion": 2020
},
"rules": {
"indent": [
@ -34,8 +35,7 @@ module.exports = {
"error",
"always"
],
"no-unused-vars" : ["warn"],
"no-console" : ["error", { allow: ["warn", "error"] }],
"no-console" : ["error", { "allow": ["warn", "error"] }],
"no-unused-vars": [
"error",
{ "vars": "all", "args": "none" }
@ -43,4 +43,4 @@ module.exports = {
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"valid-jsdoc": ["warn"]
}
};
}

3
.gitlab-ci.yml

@ -7,7 +7,8 @@ npm-test:
before_script:
- docker build -t pagedmedia/pagedjs .
script:
- docker run --security-opt 'seccomp=seccomp.json' pagedmedia/pagedjs npm test
- docker run --ipc=host pagedmedia/pagedjs npm test
- docker run --ipc=host pagedmedia/pagedjs npm run specs
# This job requires to setup GitLab the following way:
# 1. On https://www.npmjs.com/settings/tokens/create

51
Dockerfile

@ -1,16 +1,15 @@
FROM node:17
FROM mcr.microsoft.com/playwright:v1.20.0-focal
# Application parameters and variables
ENV NODE_ENV=development
ENV PORT=9090
ENV DIRECTORY /home/node/pagedjs
ENV DIRECTORY /home/pwuser/pagedjs
# Configuration for Chrome
ENV CONNECTION_TIMEOUT=60000
ENV CHROME_PATH=/usr/bin/google-chrome
# Configuration for GS4JS
ENV GS4JS_HOME=/usr/lib/x86_64-linux-gnu
RUN echo "GS4JS_HOME=/usr/lib/$(gcc -dumpmachine)"
# Install ghostscript
RUN apt-get update && \
@ -19,33 +18,18 @@ RUN apt-get update && \
apt-get install -y libgs-dev && \
rm -rf /var/lib/apt/lists/*
# See https://github.com/GoogleChrome/puppeteer/blob/master/.ci/node12/Dockerfile.linux
RUN apt-get update && \
apt-get -y install xvfb gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \
libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \
libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \
libxtst6 ca-certificates fonts-liberation libnss3 lsb-release xdg-utils wget && \
rm -rf /var/lib/apt/lists/*
# Update Freetype
COPY docker-font.conf /etc/fonts/local.conf
ENV FREETYPE_PROPERTIES="truetype:interpreter-version=35"
RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections
RUN apt-get update \
&& sh -c 'echo "deb http://http.us.debian.org/debian stable main contrib non-free" >> /etc/apt/sources.list' \
&& apt-get update \
&& apt-get install -y ttf-mscorefonts-installer \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
&& apt-get install -y --no-install-recommends fontconfig ttf-mscorefonts-installer
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
# installs, work.
# Install fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
RUN apt-get update && apt-get install -y wget --no-install-recommends \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome-unstable.list' \
&& apt-get update \
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
&& apt-get install -y fonts-liberation fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get purge --auto-remove -y curl \
@ -64,25 +48,16 @@ RUN npm install -g node-gyp
RUN mkdir -p $DIRECTORY
# Add user so we don't need --no-sandbox.
# RUN groupadd -r node && useradd -r -g node -G audio,video node \
RUN adduser node audio \
&& adduser node video \
&& mkdir -p /home/node/Downloads \
&& chown -R node:node /home/node \
&& chown -R node:node /usr/lib \
&& chown -R node:node $DIRECTORY
# Run everything after as non-privileged user.
USER node
# All running as root and as non-privileged user.
RUN chmod -R 777 $DIRECTORY
WORKDIR $DIRECTORY
COPY --chown=node:node package.json package-lock.json $DIRECTORY/
COPY package.json package-lock.json $DIRECTORY/
RUN npm install
RUN npm install ghostscript4js
RUN GS4JS_HOME="/usr/lib/$(gcc -dumpmachine)" npm install ghostscript4js
COPY --chown=node:node . $DIRECTORY
COPY . $DIRECTORY
EXPOSE $PORT

10
README.md

@ -189,7 +189,13 @@ They can also output a pdf and compare pages (one at a time) in that PDF with sa
The PDF comparison tests depend on the `ghostscript` and the `ghostscript4js` package.
To run them you'll need to install a local version of Ghostscript for you system according to https://www.npmjs.com/package/ghostscript4js#prerequisites
It is recomend to run these in the Docker container below via:
```bash
npm run docker-specs
```
However if you'd like to run the specs outside of Docker, you'll need to install a local version of Ghostscript for your system according to https://www.npmjs.com/package/ghostscript4js#prerequisites
For Mac you can install it with
@ -247,7 +253,7 @@ docker run -it -p 9090:9090 pagedmedia/pagedjs
The tests and specs can be run within the container by passing a `seccomp` file for Chrome and running `npm test`
```bash
docker run -it --security-opt 'seccomp=seccomp.json' pagedmedia/pagedjs npm test
docker run -it --security-opt 'seccomp=seccomp.json' pagedmedia/pagedjs npm test && npm run specs
```
## Contributors

24
action.yml

@ -0,0 +1,24 @@
name: Test
on:
pull_request:
push:
branches:
- "main"
jobs:
test:
name: Run test suite
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build docker image
run: docker build -t pagedmedia/pagedjs .
- name: Run tests
run: docker run --ipc=host pagedmedia/pagedjs npm test
- name: Run specs
run: docker run --ipc=host pagedmedia/pagedjs npm run specs

4
babel.config.json

@ -0,0 +1,4 @@
{
"presets": ["@babel/env"],
"plugins": ["@babel/plugin-proposal-async-generator-functions", "@babel/plugin-transform-runtime"]
}

5
jest.config.js

@ -1,3 +1,4 @@
module.exports = {
export default {
testMatch: ['**/?(*.)(test).js'],
}
testEnvironment: "jsdom",
};

14497
package-lock.json generated

File diff suppressed because it is too large Load Diff

63
package.json

@ -5,62 +5,63 @@
"author": "Fred Chasen",
"license": "MIT",
"homepage": "https://pagedmedia.org",
"main": "lib/index.js",
"module": "src/index.js",
"main": "src/index.js",
"browser": "dist/paged.js",
"type": "module",
"exports": {
"import": "./src/index.js",
"require": "./lib/index.js",
"require": "./lib/index.cjs",
"browser": "./dist/paged.js",
"default": "./lib/index.js"
"default": "./src/index.js"
},
"dependencies": {
"@babel/polyfill": "^7.10.1",
"@babel/runtime": "^7.14.0",
"@babel/runtime": "^7.17.8",
"clear-cut": "^2.0.2",
"css-tree": "^1.1.3",
"event-emitter": "^0.3.5"
},
"devDependencies": {
"@babel/cli": "^7.14.3",
"@babel/core": "^7.14.3",
"@babel/plugin-proposal-async-generator-functions": "^7.14.2",
"@babel/plugin-transform-runtime": "^7.14.3",
"@babel/preset-env": "^7.14.2",
"@rollup/plugin-commonjs": "^19.0.0",
"@babel/cli": "^7.17.6",
"@babel/core": "^7.17.8",
"@babel/plugin-proposal-async-generator-functions": "^7.16.8",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@rollup/plugin-commonjs": "^21.0.3",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"chalk": "^4.1.1",
"eslint": "^7.27.0",
"express": "^4.17.1",
"ghostscript4js": "^3.2.1",
"jest": "^26.6.3",
"jest-image-snapshot": "^4.5.0",
"puppeteer": "^9.1.1",
"@rollup/plugin-node-resolve": "^13.1.3",
"chalk": "^5.0.1",
"eslint": "^8.12.0",
"express": "^4.17.3",
"jest": "^27.5.1",
"jest-image-snapshot": "^4.5.1",
"rimraf": "^3.0.2",
"rollup": "^2.38.3",
"rollup-plugin-license": "^2.1.0",
"rollup-plugin-livereload": "^2.0.0",
"rollup": "^2.70.1",
"rollup-plugin-license": "^2.6.1",
"rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-serve": "^1.1.0"
"rollup-plugin-serve": "^1.1.0",
"playwright-core": "^1.20.2"
},
"scripts": {
"build": "rollup -c",
"legacy": "rollup -c rollup.legacy.config.js",
"start": "rollup -w -c rollup.server.config.js",
"test": "npm run lint && npm run tests && npm run specs",
"tests": "jest",
"specs": "jest --config=specs/jest.config.js",
"compile": "babel src/ -d lib/",
"pretest": "npm run build",
"test": "npm run lint && jest",
"specs": "npm run pretest && jest --config=specs/jest.config.js",
"compile": "babel src/ -d lib/ --out-file-extension .cjs",
"pretest": "npm run build && npm run compile",
"prepublishOnly": "npm run build && npm run compile && npm run legacy",
"watch": "rollup -w -c",
"lint": "eslint -c .eslintrc.js src specs",
"docker": "docker build -t pagedmedia/pagedjs . && docker run -it --security-opt 'seccomp=seccomp.json' -v $(pwd)/specs:/home/node/pagedjs/specs pagedmedia/pagedjs npm test"
"lint": "eslint -c .eslintrc.json src specs",
"docker-build": "docker build -t pagedmedia/pagedjs .",
"docker-test": "docker build -t pagedmedia/pagedjs . && docker run -it --rm --ipc=host --user pwuser --security-opt 'seccomp=seccomp.json' -v $(pwd)/specs:/home/node/pagedjs/specs pagedmedia/pagedjs npm test",
"docker-specs": "docker build -t pagedmedia/pagedjs . && docker run -it --rm --ipc=host -v $(pwd)/specs:/home/node/pagedjs/specs pagedmedia/pagedjs npm run specs",
"docker-update-specs": "docker build -t pagedmedia/pagedjs . && docker run -it --rm --ipc=host -v $(pwd)/specs:/home/node/pagedjs/specs pagedmedia/pagedjs npm specs -- -u"
},
"repository": {
"type": "git",
"url": "https://gitlab.pagedmedia.org/polyfills/pagedjs.git"
"url": "https://gitlab.coko.foundation/pagedjs/pagedjs.git"
},
"files": [
"dist",

4
rollup.config.js

@ -19,7 +19,7 @@ const plugins = [
export default [
// browser-friendly UMD build
{
input: pkg.module,
input: pkg.main,
output: {
name: "Paged",
file: pkg.browser,
@ -29,7 +29,7 @@ export default [
},
{
input: pkg.module,
input: pkg.main,
output: {
name: "PagedModule",
file: "./dist/paged.esm.js",

BIN
specs/bleed/__image_snapshots_linux__/bleed-spec-js-bleed-should-create-a-pdf-1-snap.png → specs/bleed/__image_snapshots__/bleed-spec-js-bleed-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 KiB

After

Width:  |  Height:  |  Size: 215 KiB

BIN
specs/bleed/__image_snapshots_mac__/bleed-spec-js-bleed-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 KiB

BIN
specs/breaks/__image_snapshots_linux__/breaks-spec-js-breaks-should-create-a-pdf-1-snap.png → specs/breaks/__image_snapshots__/breaks-spec-js-breaks-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 136 KiB

BIN
specs/breaks/__image_snapshots_mac__/breaks-spec-js-breaks-should-create-a-pdf-2-snap.png → specs/breaks/__image_snapshots__/breaks-spec-js-breaks-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

BIN
specs/breaks/__image_snapshots_linux__/breaks-spec-js-breaks-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

BIN
specs/breaks/__image_snapshots_mac__/breaks-spec-js-breaks-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

BIN
specs/breaks/break-after/break-after-avoid/__image_snapshots_linux__/breaks-after-avoid-spec-js-break-after-avoid-should-create-a-pdf-1-snap.png → specs/breaks/break-after/break-after-avoid/__image_snapshots__/breaks-after-avoid-spec-js-break-after-avoid-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-avoid/__image_snapshots_mac__/breaks-after-avoid-spec-js-break-after-avoid-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-left/__image_snapshots_mac__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-1-snap.png → specs/breaks/break-after/break-after-left/__image_snapshots__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-left/__image_snapshots_mac__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-2-snap.png → specs/breaks/break-after/break-after-left/__image_snapshots__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
specs/breaks/break-after/break-after-left/__image_snapshots_mac__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-3-snap.png → specs/breaks/break-after/break-after-left/__image_snapshots__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

BIN
specs/breaks/break-after/break-after-left/__image_snapshots_mac__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-4-snap.png → specs/breaks/break-after/break-after-left/__image_snapshots__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

BIN
specs/breaks/break-after/break-after-left/__image_snapshots_linux__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-5-snap.png → specs/breaks/break-after/break-after-left/__image_snapshots__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-5-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

BIN
specs/breaks/break-after/break-after-left/__image_snapshots_linux__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-left/__image_snapshots_linux__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

BIN
specs/breaks/break-after/break-after-left/__image_snapshots_linux__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

BIN
specs/breaks/break-after/break-after-left/__image_snapshots_linux__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

BIN
specs/breaks/break-after/break-after-left/__image_snapshots_mac__/breaks-after-left-spec-js-break-after-left-should-create-a-pdf-5-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

BIN
specs/breaks/break-after/break-after-page/__image_snapshots_mac__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-1-snap.png → specs/breaks/break-after/break-after-page/__image_snapshots__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-page/__image_snapshots_linux__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-2-snap.png → specs/breaks/break-after/break-after-page/__image_snapshots__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-page/__image_snapshots_linux__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-3-snap.png → specs/breaks/break-after/break-after-page/__image_snapshots__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

BIN
specs/breaks/break-after/break-after-page/__image_snapshots_mac__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-4-snap.png → specs/breaks/break-after/break-after-page/__image_snapshots__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

BIN
specs/breaks/break-after/break-after-page/__image_snapshots_linux__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-5-snap.png → specs/breaks/break-after/break-after-page/__image_snapshots__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-5-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

BIN
specs/breaks/break-after/break-after-page/__image_snapshots_linux__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-page/__image_snapshots_linux__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

BIN
specs/breaks/break-after/break-after-page/__image_snapshots_mac__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-page/__image_snapshots_mac__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

BIN
specs/breaks/break-after/break-after-page/__image_snapshots_mac__/breaks-after-page-spec-js-break-after-page-should-create-a-pdf-5-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_mac__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-1-snap.png → specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_linux__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-2-snap.png → specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_linux__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-3-snap.png → specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_mac__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-4-snap.png → specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_linux__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-5-snap.png → specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-5-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_mac__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-6-snap.png → specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-6-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_linux__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-7-snap.png → specs/breaks/break-after/break-after-recto/__image_snapshots__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-7-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_linux__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_linux__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_linux__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-6-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_mac__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_mac__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_mac__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-5-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

BIN
specs/breaks/break-after/break-after-recto/__image_snapshots_mac__/breaks-after-recto-spec-js-break-after-recto-should-create-a-pdf-7-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_mac__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-1-snap.png → specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_linux__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-2-snap.png → specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_linux__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-3-snap.png → specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_mac__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-4-snap.png → specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_linux__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-5-snap.png → specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-5-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_mac__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-6-snap.png → specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-6-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_linux__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-7-snap.png → specs/breaks/break-after/break-after-right/__image_snapshots__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-7-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_linux__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_linux__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_linux__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-6-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_mac__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_mac__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_mac__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-5-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

BIN
specs/breaks/break-after/break-after-right/__image_snapshots_mac__/breaks-after-right-spec-js-break-after-right-should-create-a-pdf-7-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

BIN
specs/breaks/break-after/break-after-verso/__image_snapshots_linux__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-1-snap.png → specs/breaks/break-after/break-after-verso/__image_snapshots__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-verso/__image_snapshots_mac__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-2-snap.png → specs/breaks/break-after/break-after-verso/__image_snapshots__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
specs/breaks/break-after/break-after-verso/__image_snapshots_linux__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-3-snap.png → specs/breaks/break-after/break-after-verso/__image_snapshots__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

BIN
specs/breaks/break-after/break-after-verso/__image_snapshots_mac__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-4-snap.png → specs/breaks/break-after/break-after-verso/__image_snapshots__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

BIN
specs/breaks/break-after/break-after-verso/__image_snapshots_linux__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-5-snap.png → specs/breaks/break-after/break-after-verso/__image_snapshots__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-5-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

BIN
specs/breaks/break-after/break-after-verso/__image_snapshots_linux__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

BIN
specs/breaks/break-after/break-after-verso/__image_snapshots_linux__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

BIN
specs/breaks/break-after/break-after-verso/__image_snapshots_mac__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-after/break-after-verso/__image_snapshots_mac__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

BIN
specs/breaks/break-after/break-after-verso/__image_snapshots_mac__/breaks-after-verso-spec-js-break-after-verso-should-create-a-pdf-5-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

BIN
specs/breaks/break-before/break-before-avoid/__image_snapshots_linux__/breaks-before-avoid-spec-js-break-before-avoid-should-create-a-pdf-1-snap.png → specs/breaks/break-before/break-before-avoid/__image_snapshots__/breaks-before-avoid-spec-js-break-before-avoid-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-before/break-before-avoid/__image_snapshots_mac__/breaks-before-avoid-spec-js-break-before-avoid-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-before/break-before-left/__image_snapshots_linux__/break-before-left-spec-js-break-before-left-should-create-a-pdf-1-snap.png → specs/breaks/break-before/break-before-left/__image_snapshots__/break-before-left-spec-js-break-before-left-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

BIN
specs/breaks/break-before/break-before-left/__image_snapshots_linux__/break-before-left-spec-js-break-before-left-should-create-a-pdf-2-snap.png → specs/breaks/break-before/break-before-left/__image_snapshots__/break-before-left-spec-js-break-before-left-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-before/break-before-left/__image_snapshots_mac__/break-before-left-spec-js-break-before-left-should-create-a-pdf-3-snap.png → specs/breaks/break-before/break-before-left/__image_snapshots__/break-before-left-spec-js-break-before-left-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
specs/breaks/break-before/break-before-left/__image_snapshots_linux__/break-before-left-spec-js-break-before-left-should-create-a-pdf-4-snap.png → specs/breaks/break-before/break-before-left/__image_snapshots__/break-before-left-spec-js-break-before-left-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

BIN
specs/breaks/break-before/break-before-left/__image_snapshots_linux__/break-before-left-spec-js-break-before-left-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

BIN
specs/breaks/break-before/break-before-left/__image_snapshots_mac__/break-before-left-spec-js-break-before-left-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

BIN
specs/breaks/break-before/break-before-left/__image_snapshots_mac__/break-before-left-spec-js-break-before-left-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-before/break-before-left/__image_snapshots_mac__/break-before-left-spec-js-break-before-left-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

BIN
specs/breaks/break-before/break-before-page/__image_snapshots_linux__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-1-snap.png → specs/breaks/break-before/break-before-page/__image_snapshots__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-before/break-before-page/__image_snapshots_linux__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-2-snap.png → specs/breaks/break-before/break-before-page/__image_snapshots__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-before/break-before-page/__image_snapshots_linux__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-3-snap.png → specs/breaks/break-before/break-before-page/__image_snapshots__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

BIN
specs/breaks/break-before/break-before-page/__image_snapshots_linux__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-4-snap.png → specs/breaks/break-before/break-before-page/__image_snapshots__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

BIN
specs/breaks/break-before/break-before-page/__image_snapshots_mac__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-before/break-before-page/__image_snapshots_mac__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-before/break-before-page/__image_snapshots_mac__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

BIN
specs/breaks/break-before/break-before-page/__image_snapshots_mac__/breaks-before-page-spec-js-break-before-page-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

BIN
specs/breaks/break-before/break-before-right/__image_snapshots_mac__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-1-snap.png → specs/breaks/break-before/break-before-right/__image_snapshots__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-1-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
specs/breaks/break-before/break-before-right/__image_snapshots_linux__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-2-snap.png → specs/breaks/break-before/break-before-right/__image_snapshots__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-2-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

BIN
specs/breaks/break-before/break-before-right/__image_snapshots_linux__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-3-snap.png → specs/breaks/break-before/break-before-right/__image_snapshots__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-3-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
specs/breaks/break-before/break-before-right/__image_snapshots_linux__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-4-snap.png → specs/breaks/break-before/break-before-right/__image_snapshots__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-4-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

BIN
specs/breaks/break-before/break-before-right/__image_snapshots_linux__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-5-snap.png → specs/breaks/break-before/break-before-right/__image_snapshots__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-5-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

BIN
specs/breaks/break-before/break-before-right/__image_snapshots_mac__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-6-snap.png → specs/breaks/break-before/break-before-right/__image_snapshots__/breaks-before-right-spec-js-break-before-right-should-create-a-pdf-6-snap.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save