Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-organized repo and updated Jasmine
- Loading branch information
1 parent
6f41dbf
commit 184e18d
Showing
10 changed files
with
371 additions
and
301 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 |
---|---|---|
@@ -1,52 +1,48 @@ | ||
<!doctype html> | ||
|
||
<html lang="en"> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Jasmine Spec Runner</title> | ||
|
||
<link href="lib/jasmine-1.1.0/jasmine_favicon.png" rel="shortcut icon" type="image/png" /> | ||
<title>Cookies.js Test Runner</title> | ||
|
||
<link href="lib/jasmine-1.1.0/jasmine.css" rel="stylesheet" /> | ||
<script src="lib/jasmine-1.1.0/jasmine.js"></script> | ||
<script src="lib/jasmine-1.1.0/jasmine-html.js"></script> | ||
<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="src/cookies.min.js"></script> | ||
<script type="text/javascript" src="src/cookies.min.js"></script> | ||
|
||
<!-- include spec files here... --> | ||
<script src="spec/cookies-spec.js"></script> | ||
|
||
<script type="text/javascript" src="spec/cookies-spec.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(); | ||
currentWindowOnload(); | ||
} | ||
execJasmine(); | ||
}; | ||
|
||
function execJasmine() { | ||
jasmineEnv.execute(); | ||
} | ||
|
||
})(); | ||
</script> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> | ||
</html> |
File renamed without changes.
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
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
Oops, something went wrong.