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:
22
test/browser_integration/index.html
Normal file
22
test/browser_integration/index.html
Normal 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>
|
||||
Reference in New Issue
Block a user