mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
48 lines
1.1 KiB
HTML
48 lines
1.1 KiB
HTML
<html>
|
|
<head>
|
|
<link rel='stylesheet' href='style.css'>
|
|
<style>
|
|
@font-face {
|
|
font-family: 'font';
|
|
src: url('font.woff2') format('woff2');
|
|
}
|
|
|
|
body {
|
|
font-family: 'font';
|
|
}
|
|
</style>
|
|
<script src='script.js'></script>
|
|
<script>
|
|
const body = JSON.stringify({
|
|
data: {
|
|
key: 'value',
|
|
array: ['value-1', 'value-2'],
|
|
},
|
|
});
|
|
const fetches = [
|
|
fetch('/api/endpoint'),
|
|
fetch('/call-with-query-params?param1=value1¶m1=value2¶m2=value2'),
|
|
fetch('/post-data-1', {
|
|
method: 'POST',
|
|
headers: { 'content-type': 'application/json' },
|
|
body,
|
|
}),
|
|
fetch('/post-data-2', {
|
|
method: 'POST',
|
|
headers: { 'Content-Type': 'application/json' },
|
|
body,
|
|
}),
|
|
];
|
|
window.donePromise = Promise.all(fetches.map(f => f.then(r => r.body()).then(() => null).catch(e => {})));
|
|
</script>
|
|
<script></script>
|
|
<script>
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>Network Tab Test</h1>
|
|
<img src="image.png" >
|
|
</body>
|
|
</html>
|