morris.js/spec/specs.html
Olly Smith 6787fa7cff WIP: HTML hover refactor.
- Morris.Hover now encapsulates the hover object, with no graph-specific
  code.
- Tests for Morris.Hover.
- Add chai-jquery to test suite.
2012-12-07 19:04:21 +00:00

36 lines
1.2 KiB
HTML

<!doctype html>
<head>
<meta charset="utf-8">
<title>morris.js tests</title>
<link rel="stylesheet" href="vendor/mocha-1.6.0.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../morris.css" type="text/css" media="screen" />
<script src="vendor/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="vendor/raphael-2.1.0.min.js"></script>
</head>
<body>
<div id="mocha"></div>
<script type="text/javascript" src="vendor/mocha-1.6.0.js"></script>
<script>
mocha.setup('bdd');
</script>
<script type="text/javascript" src="vendor/chai-1.3.0.js"></script>
<script type="text/javascript" src="vendor/chai-jquery-1.1.0.js"></script>
<script type="text/javascript" src="vendor/sinon-1.5.0.js"></script>
<script type="text/javascript" src="vendor/sinon-chai-2.1.2.js"></script>
<script>
should = chai.should();
</script>
<script type="text/javascript" src="../morris.js"></script>
<script type="text/javascript" src="../build/spec.js"></script>
<div id="test" style="width: 400px; height: 200px;"></div>
<script>
if (navigator.userAgent.indexOf('PhantomJS') < 0) {
mocha.run();
}
</script>
</body>
</html>