| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| (async function() { |
| TestRunner.addResult(`Checks that we show warning message for long cookie.\n`); |
| await TestRunner.loadModule('console_test_runner'); |
| await TestRunner.loadModule('network_test_runner'); |
| await TestRunner.showPanel('network'); |
| |
| NetworkTestRunner.makeFetch( |
| 'http://127.0.0.1:8000/devtools/network/resources/set-cookie.php?length=4096', {}, step1); |
| |
| function step1() { |
| NetworkTestRunner.makeFetch( |
| 'http://127.0.0.1:8000/devtools/network/resources/set-cookie.php?length=4097', {}, dumpMessages); |
| } |
| |
| function dumpMessages() { |
| ConsoleTestRunner.dumpConsoleMessages(); |
| TestRunner.completeTest(); |
| } |
| })(); |