chore: delete some unreferenced test files (#20511)

This commit is contained in:
Jeremy Apthorp 2019-10-10 11:24:06 -07:00 committed by GitHub
parent 812de5d3bf
commit 01448e1235
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 0 additions and 127 deletions

View file

@ -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>

View file

@ -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>

View file

@ -1,5 +0,0 @@
console.log('Service worker startups.')
self.addEventListener('install', (event) => {
console.log('Service worker installed.')
})

View file

@ -1,5 +0,0 @@
<html>
<body>
<img src="../assets/logo.png" />
</body>
</html>

View file

@ -1,9 +0,0 @@
<html>
<body>
<script type="text/javascript" charset="utf-8">
process.on('exit', function() {
});
</script>
</body>
</html>

View file

@ -1,7 +0,0 @@
<html>
<body>
<script type="text/javascript" charset="utf-8">
console.log(document.referrer);
</script>
</body>
</html>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -1,8 +0,0 @@
<html>
<body>
<h1>Hello World!</h1>
<script>
window.print()
</script>
</body>
</html>