<!doctype html>
<title>date-picker browser testing suite</title>
<meta http-equiv=Content-Type content="text/html; charset=UTF-8">

<link rel=stylesheet href=../node_modules/mocha/mocha.css>
<script src=../node_modules/mocha/mocha.js></script>
<script src=lib/sinon-1.3.4.js></script>
<script src=../node_modules/chai/chai.js></script>
<script src=../node_modules/sinon-chai/lib/sinon-chai.js></script>
<script>
mocha.setup(
	{ ui: 'bdd'
	// Checking for leaks is extremely slow in Safari (all tests run in > 78s
	// vs < 0.90s with `ignoreLeaks: true`, and both settings run < 0.6s in
	// chrome and < 80ms in node.
	// So: We are checking for leaks in node, not in the browser (which is for
	// cross-browser testing anyway!
	, ignoreLeaks: true
	}
);
var expect = chai.expect
</script>

<script src=helpers/sinon.js></script>
<script src=helpers/chai/compare.js></script>

<div id=mocha></div>

<script>
function require(path) {
	if(path.match(/helpers\/date-picker/)) {
		return DatePicker;
	}

	throw new Error('Uncaught require: ' + path);
}
</script>
<script src=../src/dp.js></script>

<!-- Include test scripts here -->
{{{scripts}}}

<script>
!function (){
	var runner = mocha.run();
}();
</script>
