chore: delete some unreferenced test files (#20511)
This commit is contained in:
parent
812de5d3bf
commit
01448e1235
12 changed files with 0 additions and 127 deletions
11
spec/fixtures/api/allocate-memory.html
vendored
11
spec/fixtures/api/allocate-memory.html
vendored
|
@ -1,11 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<script>
|
|
||||||
window.bigBuffer = new Uint8Array(1024 * 1024 * 64)
|
|
||||||
window.bigBuffer.fill(5, 50, 1024 * 1024)
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
0
spec/fixtures/api/execute-javascript.html
vendored
0
spec/fixtures/api/execute-javascript.html
vendored
|
@ -1,12 +0,0 @@
|
||||||
<html>
|
|
||||||
<body>
|
|
||||||
<script>
|
|
||||||
window.onerror = (err) => console.log(error)
|
|
||||||
|
|
||||||
navigator.serviceWorker.register('service-worker.js', {
|
|
||||||
scope: './'
|
|
||||||
}).then(sw => {
|
|
||||||
console.log("registered")
|
|
||||||
}).catch(err => console.log(error))
|
|
||||||
</script>
|
|
||||||
</body>
|
|
|
@ -1,5 +0,0 @@
|
||||||
console.log('Service worker startups.')
|
|
||||||
|
|
||||||
self.addEventListener('install', (event) => {
|
|
||||||
console.log('Service worker installed.')
|
|
||||||
})
|
|
|
@ -1,5 +0,0 @@
|
||||||
<html>
|
|
||||||
<body>
|
|
||||||
<img src="../assets/logo.png" />
|
|
||||||
</body>
|
|
||||||
</html>
|
|
9
spec/fixtures/pages/process-exit.html
vendored
9
spec/fixtures/pages/process-exit.html
vendored
|
@ -1,9 +0,0 @@
|
||||||
<html>
|
|
||||||
<body>
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
|
||||||
process.on('exit', function() {
|
|
||||||
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
7
spec/fixtures/pages/referrer.html
vendored
7
spec/fixtures/pages/referrer.html
vendored
|
@ -1,7 +0,0 @@
|
||||||
<html>
|
|
||||||
<body>
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
|
||||||
console.log(document.referrer);
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
23
spec/fixtures/pages/webview-guest-resize.html
vendored
23
spec/fixtures/pages/webview-guest-resize.html
vendored
|
@ -1,23 +0,0 @@
|
||||||
<html>
|
|
||||||
<style>
|
|
||||||
* {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<body>
|
|
||||||
<webview id="webview" nodeintegration src="resize.html"/>
|
|
||||||
</body>
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
|
||||||
const {ipcRenderer} = require('electron')
|
|
||||||
|
|
||||||
const webview = document.getElementById('webview')
|
|
||||||
webview.addEventListener('did-finish-load', () => {
|
|
||||||
ipcRenderer.send('webview-loaded')
|
|
||||||
}, {once: true})
|
|
||||||
webview.addEventListener('resize', event => {
|
|
||||||
ipcRenderer.send('webview-element-resize', event.newWidth, event.newHeight)
|
|
||||||
}, false)
|
|
||||||
</script>
|
|
||||||
</html>
|
|
|
@ -1,23 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<script>
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
|
||||||
var windowUrl = decodeURIComponent(window.location.search.substring(3))
|
|
||||||
|
|
||||||
var wv = new WebView()
|
|
||||||
wv.setAttribute('nodeintegration', 'yes')
|
|
||||||
wv.setAttribute('src', windowUrl)
|
|
||||||
wv.setAttribute('style', 'display:inline-block; width:200px; height:200px')
|
|
||||||
|
|
||||||
wv.addEventListener('console-message', function(e) {
|
|
||||||
window.answer(e.message)
|
|
||||||
})
|
|
||||||
|
|
||||||
document.body.appendChild(wv)
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,15 +0,0 @@
|
||||||
<html>
|
|
||||||
<body>
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
|
||||||
var windowUrl = decodeURIComponent(window.location.search.substring(3))
|
|
||||||
var opened = window.open('file://' + windowUrl, '', 'webviewTag=yes,show=no')
|
|
||||||
window.addEventListener('message', function (event) {
|
|
||||||
try {
|
|
||||||
opened.close()
|
|
||||||
} finally {
|
|
||||||
window.opener.postMessage(event.data, '*')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<html>
|
|
||||||
<body>
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
|
||||||
window.onload = () => {
|
|
||||||
window.opener.postMessage({isWebViewUndefined: typeof WebView === 'undefined'}, '*')
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
8
spec/fixtures/pages/window-print.html
vendored
8
spec/fixtures/pages/window-print.html
vendored
|
@ -1,8 +0,0 @@
|
||||||
<html>
|
|
||||||
<body>
|
|
||||||
<h1>Hello World!</h1>
|
|
||||||
<script>
|
|
||||||
window.print()
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in a new issue