diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-11 11:47:42 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-11 11:47:42 -0700 |
commit | 3b6853f50b2331c2493d6d188c7310c8af699018 (patch) | |
tree | a4c0f0271069a9b38119a499cec8a6043003577c /tests/browser_harness.html | |
parent | c5b8395899bdd763a51f0385178e45a29eda711c (diff) |
close browser test windows in almost all tests, making the browser tests much more automatic
Diffstat (limited to 'tests/browser_harness.html')
-rw-r--r-- | tests/browser_harness.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/browser_harness.html b/tests/browser_harness.html new file mode 100644 index 00000000..fbe9bcc7 --- /dev/null +++ b/tests/browser_harness.html @@ -0,0 +1,23 @@ +<html> +<body> +<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); + } + setTimeout(check, 333); + } catch(e) { + document.write('Tests complete. View log in console.'); + return; + } + } + check(); +</script> +</body> +</html> + |