blob: b5ee029d25bb77f500f7f6263897fcbe1420f8d7 [file]
<!--
Copyright 2020 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.
-->
<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>