Roll chromium to 508268 (#1019)
This gets us: - Plural metrics names https://crrev.com/507885 - TargetInfoChanged on URL changes https://crrev.com/508049 - Sending proper resource types for requests https://crrev.com/667504 Fixes #734
This commit is contained in:
parent
c893bf3684
commit
0426e3c068
12
docs/api.md
12
docs/api.md
@ -671,10 +671,10 @@ If there's no element matching `selector`, the method throws an error.
|
|||||||
#### page.getMetrics()
|
#### page.getMetrics()
|
||||||
- returns: <[Object]> Object containing metrics as key/value pairs.
|
- returns: <[Object]> Object containing metrics as key/value pairs.
|
||||||
- `Timestamp` <[number]> The timestamp when the metrics sample was taken.
|
- `Timestamp` <[number]> The timestamp when the metrics sample was taken.
|
||||||
- `DocumentCount` <[number]> Number of documents in the page.
|
- `Documents` <[number]> Number of documents in the page.
|
||||||
- `FrameCount` <[number]> Number of frames in the page.
|
- `Frames` <[number]> Number of frames in the page.
|
||||||
- `JSEventListenerCount` <[number]> Number of events in the page.
|
- `JSEventListeners` <[number]> Number of events in the page.
|
||||||
- `NodeCount` <[number]> Number of DOM nodes in the page.
|
- `Nodes` <[number]> Number of DOM nodes in the page.
|
||||||
- `LayoutCount` <[number]> Total number of full or partial page layout.
|
- `LayoutCount` <[number]> Total number of full or partial page layout.
|
||||||
- `RecalcStyleCount` <[number]> Total number of page style recalculations.
|
- `RecalcStyleCount` <[number]> Total number of page style recalculations.
|
||||||
- `LayoutDuration` <[number]> Combined durations of all page layouts.
|
- `LayoutDuration` <[number]> Combined durations of all page layouts.
|
||||||
@ -820,7 +820,7 @@ The `format` options are:
|
|||||||
The method iterates javascript heap and finds all the objects with the given prototype.
|
The method iterates javascript heap and finds all the objects with the given prototype.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Create a Map object
|
// Create a Map object
|
||||||
await page.evaluate(() => window.map = new Map());
|
await page.evaluate(() => window.map = new Map());
|
||||||
// Get a handle to the Map object prototype
|
// Get a handle to the Map object prototype
|
||||||
const mapPrototype = await page.evaluateHandle(() => Map.prototype);
|
const mapPrototype = await page.evaluateHandle(() => Map.prototype);
|
||||||
@ -1543,7 +1543,7 @@ await resultHandle.dispose();
|
|||||||
The method iterates javascript heap and finds all the objects with the given prototype.
|
The method iterates javascript heap and finds all the objects with the given prototype.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Create a Map object
|
// Create a Map object
|
||||||
await page.evaluate(() => window.map = new Map());
|
await page.evaluate(() => window.map = new Map());
|
||||||
// Get a handle to the Map object prototype
|
// Get a handle to the Map object prototype
|
||||||
const mapPrototype = await page.evaluateHandle(() => Map.prototype);
|
const mapPrototype = await page.evaluateHandle(() => Map.prototype);
|
||||||
|
@ -832,10 +832,10 @@ class Page extends EventEmitter {
|
|||||||
/** @type {!Set<string>} */
|
/** @type {!Set<string>} */
|
||||||
const supportedMetrics = new Set([
|
const supportedMetrics = new Set([
|
||||||
'Timestamp',
|
'Timestamp',
|
||||||
'DocumentCount',
|
'Documents',
|
||||||
'FrameCount',
|
'Frames',
|
||||||
'JSEventListenerCount',
|
'JSEventListeners',
|
||||||
'NodeCount',
|
'Nodes',
|
||||||
'LayoutCount',
|
'LayoutCount',
|
||||||
'RecalcStyleCount',
|
'RecalcStyleCount',
|
||||||
'LayoutDuration',
|
'LayoutDuration',
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
"ws": "^3.0.0"
|
"ws": "^3.0.0"
|
||||||
},
|
},
|
||||||
"puppeteer": {
|
"puppeteer": {
|
||||||
"chromium_revision": "507565"
|
"chromium_revision": "508268"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/debug": "0.0.30",
|
"@types/debug": "0.0.30",
|
||||||
|
@ -796,10 +796,10 @@ describe('Page', function() {
|
|||||||
function checkMetrics(metrics) {
|
function checkMetrics(metrics) {
|
||||||
const metricsToCheck = new Set([
|
const metricsToCheck = new Set([
|
||||||
'Timestamp',
|
'Timestamp',
|
||||||
'DocumentCount',
|
'Documents',
|
||||||
'FrameCount',
|
'Frames',
|
||||||
'JSEventListenerCount',
|
'JSEventListeners',
|
||||||
'NodeCount',
|
'Nodes',
|
||||||
'LayoutCount',
|
'LayoutCount',
|
||||||
'RecalcStyleCount',
|
'RecalcStyleCount',
|
||||||
'LayoutDuration',
|
'LayoutDuration',
|
||||||
|
Loading…
Reference in New Issue
Block a user