mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Remove debug code from the integration tests
Doing so simplifies the code a bit, and such code is generally not checked in because it can easily be added locally if needed.
This commit is contained in:
parent
35f85c55bd
commit
efe4a3455a
2 changed files with 2 additions and 12 deletions
|
@ -1388,15 +1388,10 @@ describe("Stamp Editor", () => {
|
|||
|
||||
await Promise.all(
|
||||
pages.map(async ([browserName, page]) => {
|
||||
const debug = false;
|
||||
|
||||
await page.click("#secondaryToolbarToggleButton");
|
||||
await page.waitForSelector("#secondaryToolbar", { visible: true });
|
||||
const secondary = await page.$("#secondaryToolbar");
|
||||
const png = await secondary.screenshot({
|
||||
type: "png",
|
||||
path: debug ? `foo.png` : "",
|
||||
});
|
||||
const png = await secondary.screenshot({ type: "png" });
|
||||
const secondaryImage = PNG.sync.read(Buffer.from(png));
|
||||
const buffer = new Uint32Array(secondaryImage.data.buffer);
|
||||
expect(buffer.every(x => x === 0xff0000ff))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue