-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
26 lines (24 loc) · 922 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
<head>
<title>Super Puper Mocha Test App</title>
<style type="text/css">body { padding: 30px; } button, input { font-size: 40px; }</style>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/mocha/5.1.1/mocha.css"/>
<script src="main.js"></script>
</head>
<body>
<button onclick="buttonClicked()">Go</button>
<input type="text" value="" />
<div id="mocha"></div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/mocha/5.1.1/mocha.js"></script>
<script>mocha.setup('bdd')</script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/expect.js/0.2.0/expect.js"></script>
<script src="test-app.js"></script>
<script>
if (location.href.includes('runTest') || navigator.userAgent.includes('HeadlessChrome'))
mocha.run()
if (window.mochaPhantomJS)
mochaPhantomJS.run()
</script>
</body>
</html>