Skip to content

Commit

Permalink
Set up manual testing in NW.js
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaredWilcurt committed Dec 21, 2023
1 parent 6259023 commit aa48df7
Show file tree
Hide file tree
Showing 8 changed files with 968 additions and 192 deletions.
188 changes: 0 additions & 188 deletions manual-testing.js

This file was deleted.

43 changes: 43 additions & 0 deletions nw-testing/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<title>Manual test</title>
<style>
body {
background: #333;
color: #CCC;
padding-top: 40px;
text-align: center;
}
button {
background: #888;
border: 0px;
margin-right: 10px;
color: #EEE;
font-size: 40px;
}
</style>
</head>
<body>
<button id="run">
Run
</button>
<button id="reload">
Reload
</button>
<script>
const { manualTesting } = require('./manual-testing.js');

const runButton = document.getElementById('run');
const reloadButton = document.getElementById('reload');

runButton.addEventListener('click', function () {
manualTesting();
});

reloadButton.addEventListener('click', function () {
nw.Window.get().reloadIgnoringCache();
});
</script>
</body>
</html>
Loading

0 comments on commit aa48df7

Please sign in to comment.