d062381978
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
16 lines
225 B
HTML
16 lines
225 B
HTML
<script>
|
|
function foo() {
|
|
if (1 > 2)
|
|
console.log(1);
|
|
if (1 < 2)
|
|
console.log(2);
|
|
let x = 1 > 2 ? 'foo' : 'bar';
|
|
let y = 1 < 2 ? 'foo' : 'bar';
|
|
let z = () => {};
|
|
let q = () => {};
|
|
q();
|
|
}
|
|
|
|
foo();
|
|
</script>
|