2011-10-10 18:11:13 +00:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type"/>
|
|
|
|
<title>Jasmine Test Runner - Generated by jasmine-headless-webkit</title>
|
2011-10-27 00:05:05 +00:00
|
|
|
<script type="text/javascript" src="<%= Jasmine::Headless.root.join('vendor/assets/javascripts/prolog.js') %>"></script>
|
2011-10-10 18:11:13 +00:00
|
|
|
<%= files.join("\n") %>
|
|
|
|
<script type="text/javascript">
|
|
|
|
if (window.JHW) { HeadlessReporterResult.specLineNumbers = <%= MultiJson.encode(spec_lines) %>; }
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script type="text/javascript">
|
2011-10-27 00:05:05 +00:00
|
|
|
jasmine.getEnv().console = {
|
|
|
|
log: function(msg) { JHW.stdout.puts(msg) }
|
|
|
|
}
|
|
|
|
|
2011-10-10 18:11:13 +00:00
|
|
|
window._onload = window.onload
|
|
|
|
|
|
|
|
window.onload = function() {
|
|
|
|
if (window._onload) { window._onload() }
|
2011-10-27 00:05:05 +00:00
|
|
|
|
2011-10-10 18:11:13 +00:00
|
|
|
if (window.JHW) {
|
2011-10-27 00:05:05 +00:00
|
|
|
jasmine.getEnv().addReporter(new jasmine.HeadlessConsoleReporter());
|
2011-10-10 18:11:13 +00:00
|
|
|
} else {
|
|
|
|
jasmine.getEnv().addReporter(new jasmine.HtmlReporter());
|
|
|
|
}
|
2011-10-27 00:05:05 +00:00
|
|
|
|
2011-10-10 18:11:13 +00:00
|
|
|
jasmine.getEnv().execute();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|