Added the browser based test suite, have it running automatically via PhantomJS with grunt, all tests are passing except one, which requires PhantomJS send a body with a DELETE request

This commit is contained in:
Spencer Alger
2013-11-05 09:57:56 -07:00
parent 4273ffc2c7
commit 7e6fa479ad
34 changed files with 58054 additions and 1008 deletions

View File

@ -0,0 +1,22 @@
<html>
<head>
<meta charset="utf-8">
<title>Mocha Tests</title>
<link rel="stylesheet" href="mocha.css" />
</head>
<body>
<div id="mocha"></div>
<script src="expect.js?_c={{ts}}"></script>
<script src="mocha.js?_c={{ts}}"></script>
<script>mocha.setup('bdd')</script>
<script src="client.js?_c={{ts}}"></script>
<script src="yaml_tests.js?_c={{ts}}"></script>
<script>
mocha.checkLeaks();
mocha.slow(1000);
mocha.timeout(11000);
mocha.bail();
/PhantomJS/i.test(navigator.userAgent) || mocha.run();
</script>
</body>
</html>