blob: 9810919de39dfdeac2498d25b47f01b854960084 [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 if page keeps recording after refresh with Screenshot enabled. Bug 569557\n`);
await TestRunner.loadModule('network_test_runner');
await TestRunner.showPanel('network');
await TestRunner.loadHTML(`
<p id="test"></p>
`);
UI.panels.network._networkRecordFilmStripSetting.set(true);
Network.NetworkPanel._displayScreenshotDelay = 0;
TestRunner.resourceTreeModel.addEventListener(SDK.ResourceTreeModel.Events.Load, TestRunner.pageLoaded);
TestRunner.runWhenPageLoads(() => setTimeout(checkRecording, 50));
TestRunner.resourceTreeModel.reloadPage();
function checkRecording() {
TestRunner.addResult(UI.panels.network._networkLogView._recording ? 'Still recording' : 'Not recording');
TestRunner.completeTest();
}
})();