test: add test to make sure clipping is correct on retina displays (#1111)

The test is currently disabled since it doesn't work.

References #733
This commit is contained in:
Andrey Lushnikov 2017-10-20 10:45:22 -07:00 committed by GitHub
parent ace239cb01
commit 0f64f3e984
2 changed files with 13 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 B

View File

@ -2531,6 +2531,19 @@ describe('Page', function() {
const screenshot = await page.screenshot({omitBackground: true});
expect(screenshot).toBeGolden('transparent.png');
}));
// Doesn't work on retina displays.
// @see https://github.com/GoogleChrome/puppeteer/issues/733
xit('should work with odd clip size on Retina displays', SX(async function() {
const screenshot = await page.screenshot({
clip: {
x: 0,
y: 0,
width: 11,
height: 11,
}
});
expect(screenshot).toBeGolden('screenshot-clip-odd-size.png');
}));
});
describe('Page.select', function() {