feat(chromium): roll chromium to r508693 (#1031)
This roll enables network throttling in headless: http://crrev.com/508571
This commit is contained in:
parent
8511db957f
commit
fd88eb5358
@ -34,7 +34,7 @@
|
||||
"ws": "^3.0.0"
|
||||
},
|
||||
"puppeteer": {
|
||||
"chromium_revision": "508367"
|
||||
"chromium_revision": "508693"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/debug": "0.0.30",
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 168 B |
14
test/test.js
14
test/test.js
@ -1531,8 +1531,18 @@ describe('Page', function() {
|
||||
}));
|
||||
it('should take into account padding and border', SX(async function() {
|
||||
await page.setViewport({width: 500, height: 500});
|
||||
await page.setContent('something above<h1 style="border:2px solid blue; background: green;"> </h1>');
|
||||
const elementHandle = await page.$('h1');
|
||||
await page.setContent(`
|
||||
something above
|
||||
<style>div {
|
||||
border: 2px solid blue;
|
||||
background: green;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
</style>
|
||||
<div></div>
|
||||
`);
|
||||
const elementHandle = await page.$('div');
|
||||
const screenshot = await elementHandle.screenshot();
|
||||
expect(screenshot).toBeGolden('screenshot-element-padding-border.png');
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user