mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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:
parent
ace239cb01
commit
0f64f3e984
BIN
test/golden/screenshot-clip-odd-size.png
Normal file
BIN
test/golden/screenshot-clip-odd-size.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 81 B |
13
test/test.js
13
test/test.js
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user