puppeteer/test/golden/jscoverage-involved.txt
Andrey Lushnikov d062381978
feat: Implement JavaScript Coverage (#1673)
This patch introduces a new `page.coverage` namespace with two methods:
- `page.coverage.startJSCoverage` to initiate JavaScript coverage
  recording
- `page.coverage.stopJSCoverage` to stop JavaScript coverage and get
  results
2018-01-02 19:53:53 -08:00

28 lines
616 B
Plaintext

[
{
"url": "http://localhost:8907/jscoverage/involved.html",
"ranges": [
{
"start": 0,
"end": 35
},
{
"start": 50,
"end": 100
},
{
"start": 107,
"end": 141
},
{
"start": 148,
"end": 160
},
{
"start": 168,
"end": 207
}
],
"text": "\nfunction foo() {\n if (1 > 2)\n console.log(1);\n if (1 < 2)\n console.log(2);\n let x = 1 > 2 ? 'foo' : 'bar';\n let y = 1 < 2 ? 'foo' : 'bar';\n let z = () => {};\n let q = () => {};\n q();\n}\n\nfoo();\n"
}
]