blob: 71a54dd8061e85e749250e9cc9fbdf69b6326263 [file] [log] [blame]
<!--
Copyright 2020 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<script>
// This test page is useful for the network panel E2E tests.
// Load it with ?num=N where is the number of requests you want this test
// page to make.
const url = new URL(document.location);
const numRequests = url.searchParams.get('num') ? parseInt(url.searchParams.get('num'), 10) : 0;
const options = url.searchParams.get('cache') ? {cache: url.searchParams.get('cache')} : null;
for (let i = 0; i < numRequests; i++) {
fetch(`image.svg?id=${i}`, options);
}
</script>