feat(chromium): roll Chromium to r571040 (#2814)

This roll includes:
- https://crrev.com/570566 - DevTools: teach DOM.getBoxModel to work with SVG nodes

Fixes #1247.
This commit is contained in:
Andrey Lushnikov
2018-06-28 13:22:52 -07:00
committed by GitHub
parent d6741eca08
commit c4acc63775
3 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
<link rel='stylesheet' href='./style.css'>
<script src='./script.js' type='text/javascript'></script>
<style>
div {
line-height: 18px;
}
</style>
<div>Hi, I'm frame</div>

View File

@@ -50,7 +50,7 @@ module.exports.addTests = function({testRunner, expect}) {
const box = await elementHandle.boundingBox();
expect(box).toEqual({ x: 8, y: 8, width: 100, height: 200 });
});
xit('should work with SVG nodes', async({page, server}) => {
it('should work with SVG nodes', async({page, server}) => {
await page.setContent(`
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500">
<rect id="theRect" x="30" y="50" width="200" height="300"></rect>