blob: c793a914c2491d40ba7f1ebd2863c4f6f06de031 [file] [log] [blame]
// 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(`Tests how request headers are decoded in network item view.\n`);
await TestRunner.loadModule('network_test_runner');
await TestRunner.showPanel('network');
var value = 'Test+%21%40%23%24%25%5E%26*%28%29_%2B+parameters.';
var parameterElement = Network.RequestHeadersView.prototype._formatParameter(value, '', true);
TestRunner.addResult('Original value: ' + value);
TestRunner.addResult('Decoded value: ' + parameterElement.textContent);
TestRunner.completeTest();
})();