-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathtest.html
35 lines (31 loc) · 1.03 KB
/
test.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
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Mocha Tests</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/metro.min.css">
<link rel="stylesheet" href="https://unpkg.com/mocha/mocha.css" />
</head>
<body>
<span>
<iframe style="position: absolute; height: 100%; width: 50%;" id="oxview"></iframe>
<div style="position: absolute; right: 0; height: 100%; width: 40%; border: 1px" id="mocha"></div>
</span>
<script src="https://unpkg.com/chai/chai.js"></script>
<script src="https://unpkg.com/mocha/mocha.js"></script>
<script class="mocha-init">
mocha.setup('bdd');
mocha.checkLeaks();
</script>
<script src="test/test.edit.js"></script>
<script class="mocha-exec">
let iframe = document.getElementById('oxview');
iframe.onload = ()=>{
console.log("Frame loaded")
mocha.run();
}
iframe.src = 'index.html';
</script>
</body>
</html>