jasmine-headless-webkit/skel/template.html.erb
2011-10-25 11:25:28 -04:00

32 lines
1.1 KiB
Plaintext

<!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>
<script type="text/javascript" src="<%= Jasmine::Headless.root.join('jasmine/prolog.js') %>"</script>
<%= files.join("\n") %>
<script type="text/javascript">
if (window.JHW) { HeadlessReporterResult.specLineNumbers = <%= MultiJson.encode(spec_lines) %>; }
</script>
</head>
<body>
<script type="text/javascript">
window._onload = window.onload
window.onload = function() {
if (window._onload) { window._onload() }
if (window.JHW) {
jasmine.getEnv().addReporter(new jasmine.HeadlessReporter(function() {
window.onbeforeunload = null;
}));
} else {
jasmine.getEnv().addReporter(new jasmine.HtmlReporter());
}
jasmine.getEnv().execute();
}
</script>
</body>
</html>