feat(chromium): roll chromium to r508693 (#1031)

This roll enables network throttling in headless: http://crrev.com/508571
This commit is contained in:
Andrey Lushnikov 2017-10-13 13:52:28 -07:00 committed by GitHub
parent 8511db957f
commit fd88eb5358
3 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -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;">&nbsp;</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');
}));