This repository has been archived by the owner on Aug 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate jasmine for some basic tests
- Loading branch information
Showing
6 changed files
with
3,423 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | ||
"http://www.w3.org/TR/html4/loose.dtd"> | ||
<html> | ||
<head> | ||
<title>Jasmine Spec Runner</title> | ||
|
||
<link rel="shortcut icon" type="image/png" href="lib/jasmine-1.3.1/jasmine_favicon.png"> | ||
<link rel="stylesheet" type="text/css" href="lib/jasmine-1.3.1/jasmine.css"> | ||
<script type="text/javascript" src="lib/jasmine-1.3.1/jasmine.js"></script> | ||
<script type="text/javascript" src="lib/jasmine-1.3.1/jasmine-html.js"></script> | ||
|
||
<!-- include source files here... --> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script> | ||
<script src="https://static.firebase.com/v0/firebase.js"></script> | ||
<script src="../www/js/firefeed.js"></script> | ||
|
||
<!-- include spec files here... --> | ||
<script type="text/javascript" src="spec/FirefeedSpec.js"></script> | ||
|
||
<script type="text/javascript"> | ||
(function() { | ||
var jasmineEnv = jasmine.getEnv(); | ||
jasmineEnv.updateInterval = 1000; | ||
|
||
var htmlReporter = new jasmine.HtmlReporter(); | ||
|
||
jasmineEnv.addReporter(htmlReporter); | ||
|
||
jasmineEnv.specFilter = function(spec) { | ||
return htmlReporter.specFilter(spec); | ||
}; | ||
|
||
var currentWindowOnload = window.onload; | ||
|
||
window.onload = function() { | ||
if (currentWindowOnload) { | ||
currentWindowOnload(); | ||
} | ||
execJasmine(); | ||
}; | ||
|
||
function execJasmine() { | ||
jasmineEnv.execute(); | ||
} | ||
|
||
})(); | ||
</script> | ||
|
||
</head> | ||
|
||
<body> | ||
</body> | ||
</html> |
Binary file not shown.
Oops, something went wrong.