2008-12-04 01:11:05 +00:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
|
|
"http://www.w3.org/TR/html4/loose.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
2008-12-08 19:35:10 +00:00
|
|
|
<title>Jasmine Example</title>
|
2008-12-04 01:11:05 +00:00
|
|
|
<script type="text/javascript" src="../lib/jasmine.js"></script>
|
|
|
|
<script type="text/javascript" src="example.js"></script>
|
|
|
|
<link type="text/css" rel="stylesheet" href="../lib/jasmine.css"/>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>
|
|
|
|
Running Jasmine Example Specs
|
|
|
|
</h1>
|
|
|
|
<div id="results"></div>
|
|
|
|
<script type="text/javascript">
|
2009-03-01 13:34:00 +00:00
|
|
|
Jasmine.getEnv().execute();
|
2008-12-04 01:11:05 +00:00
|
|
|
setTimeout(function () {
|
2008-12-08 21:01:06 +00:00
|
|
|
document.getElementById('results').innerHTML = 'It\'s alive! :' +
|
2009-03-01 13:34:00 +00:00
|
|
|
(Jasmine.getEnv().currentRunner.results.passedCount === 1);
|
2008-12-04 01:11:05 +00:00
|
|
|
}, 250);
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|