File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -395,29 +395,13 @@ describe("PDF viewer", () => {
395
395
it ( "must check that canvas perfectly fits the page whatever the zoom level is" , async ( ) => {
396
396
await Promise . all (
397
397
pages . map ( async ( [ browserName , page ] ) => {
398
- if ( browserName === "chrome" ) {
399
- // Skip the test for Chrome as `scrollIntoView` below hangs since
400
- // Puppeteer 24.5.0 and higher.
401
- // See https://github.com/mozilla/pdf.js/issues/19811.
402
- // TODO: Remove this check once the issue is fixed.
403
- return ;
404
- }
405
-
406
398
// The pdf has a single page with a red background.
407
399
// We set the viewer background to red, because when screenshoting
408
400
// some part of the viewer background can be visible.
409
401
// But here we don't care about the viewer background: we only
410
402
// care about the page background and the canvas default color.
411
-
412
403
await page . evaluate ( ( ) => {
413
404
document . body . style . background = "#ff0000" ;
414
- const toolbar = document . querySelector ( ".toolbar" ) ;
415
- toolbar . style . display = "none" ;
416
- } ) ;
417
- await page . waitForSelector ( ".toolbar" , { visible : false } ) ;
418
- await page . evaluate ( ( ) => {
419
- const p = document . querySelector ( `.page[data-page-number="1"]` ) ;
420
- p . style . border = "none" ;
421
405
} ) ;
422
406
423
407
for ( let i = 0 ; ; i ++ ) {
You can’t perform that action at this time.
0 commit comments