Commit 73e2d942 authored by Yury Semikhatsky's avatar Yury Semikhatsky Committed by Commit Bot

DevTools: fix style nits in auto-attach tests

This is a follow-up fix to address comments from https://crrev.com/c/2042302

Bug: 1051687
Change-Id: Id6bc1ed057b85d8ed66b42378825a47ce7775170
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2071360Reviewed-by: default avatarPeter Marshall <petermarshall@chromium.org>
Commit-Queue: Yury Semikhatsky <yurys@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748838}
parent f37a7110
(async function(testRunner) {
var {page, session, dp} = await testRunner.startBlank(
await testRunner.startBlank(
`Tests that browser.Target.setAutoAttach() attaches to new about:blank page.`);
const target = testRunner.browserP().Target;
......
Tests that browser.Target.setAutoAttach() supports only flatten protocol.
Tried to auto-attach with not fatten protocol{
Tried to auto-attach with not flatten protocol{
error : {
code : -32602
message : Only flatten protocol is supported with browser level auto-attach
......
(async function(testRunner) {
var {page, session, dp} = await testRunner.startBlank(
await testRunner.startBlank(
`Tests that browser.Target.setAutoAttach() supports only flatten protocol.`);
const target = testRunner.browserP().Target;
const response = await target.setAutoAttach(
{autoAttach: true, waitForDebuggerOnStart: true, flatten: false});
testRunner.log(response, 'Tried to auto-attach with not fatten protocol');
testRunner.log(response, 'Tried to auto-attach with not flatten protocol');
testRunner.completeTest();
})
(async function(testRunner) {
var {page, session, dp} = await testRunner.startBlank(
await testRunner.startBlank(
`Tests that browser.Target.setAutoAttach() attaches to new page targets.`);
const target = testRunner.browserP().Target;
......
(async function(testRunner) {
var {page, session, dp} = await testRunner.startBlank(
const {page, session, dp} = await testRunner.startBlank(
`Tests that browser.Target.setAutoAttach() attaches to window.open targets.`);
const target = testRunner.browserP().Target;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment