참고소스 수정본
This commit is contained in:
BIN
참고/playwright-main/tests/assets/network-tab/font.woff2
Normal file
BIN
참고/playwright-main/tests/assets/network-tab/font.woff2
Normal file
Binary file not shown.
BIN
참고/playwright-main/tests/assets/network-tab/image.png
Normal file
BIN
참고/playwright-main/tests/assets/network-tab/image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 312 B |
52
참고/playwright-main/tests/assets/network-tab/network.html
Normal file
52
참고/playwright-main/tests/assets/network-tab/network.html
Normal file
@@ -0,0 +1,52 @@
|
||||
<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,
|
||||
}),
|
||||
fetch('/post-xml-data', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/xml' },
|
||||
body: `<?xml version="1.0"?><note to="Alice" from="Bob"><body>Hello & welcome!</body></note>`,
|
||||
}),
|
||||
];
|
||||
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>
|
||||
Reference in New Issue
Block a user