diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/devtools/front_end/Tests.js')
-rw-r--r-- | chromium/third_party/blink/renderer/devtools/front_end/Tests.js | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/devtools/front_end/Tests.js b/chromium/third_party/blink/renderer/devtools/front_end/Tests.js index 574c67c8e39..6fa4ef30d9c 100644 --- a/chromium/third_party/blink/renderer/devtools/front_end/Tests.js +++ b/chromium/third_party/blink/renderer/devtools/front_end/Tests.js @@ -565,7 +565,7 @@ this._waitForTargets(2, callback.bind(this)); function callback() { - Protocol.InspectorBackend.deprecatedRunAfterPendingDispatches(this.releaseControl.bind(this)); + Protocol.test.deprecatedRunAfterPendingDispatches(this.releaseControl.bind(this)); } }; @@ -591,6 +591,15 @@ } }; + TestSuite.prototype.testSharedWorkerNetworkPanel = function() { + this.takeControl(); + this.showPanel('network').then(() => { + if (!document.querySelector('#network-container')) + this.fail('unable to find #network-container'); + this.releaseControl(); + }); + }; + TestSuite.prototype.enableTouchEmulation = function() { const deviceModeModel = new Emulation.DeviceModeModel(function() {}); deviceModeModel._target = SDK.targetManager.mainTarget(); @@ -1169,7 +1178,7 @@ browserContextIds.push(browserContextId); const {targetId} = await targetAgent.invoke_createTarget({url: 'about:blank', browserContextId}); - await targetAgent.invoke_attachToTarget({targetId}); + await targetAgent.invoke_attachToTarget({targetId, flatten: true}); const target = SDK.targetManager.targets().find(target => target.id() === targetId); const pageAgent = target.pageAgent(); @@ -1278,6 +1287,14 @@ }); await testCase(baseURL + 'echoheader?Cookie', undefined, 200, ['cache-control'], 'devtools-test-cookie=Bar'); + await SDK.targetManager.mainTarget().runtimeAgent().invoke_evaluate({ + expression: `fetch("/set-cookie?devtools-test-cookie=same-site-cookie;SameSite=Lax", + {credentials: 'include'})`, + awaitPromise: true + }); + await testCase( + baseURL + 'echoheader?Cookie', undefined, 200, ['cache-control'], 'devtools-test-cookie=same-site-cookie'); + this.releaseControl(); }; |