blob: 86f3749f79c522facd3929731a67e98a956244a6 (
plain)
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
|
<html>
<head>
<title>Emscripten Browser Test Harness</title>
</head>
<body>
<h2><b>Running tests...</b></h2>
<div id="output"></div>
<script>
var counter = 0;
function check() {
var request = new XMLHttpRequest();
request.open('GET', '/check', false);
try {
request.send(null);
if (request.responseText != 'False') {
window.open(request.responseText);
document.getElementById('output').innerHTML += 'opened test window ' + (counter++) + '..<br>';
}
setTimeout(check, 333);
} catch(e) {
document.write('Tests complete. View log in console.');
return;
}
}
check();
</script>
</body>
</html>
|