-
Notifications
You must be signed in to change notification settings - Fork 25
/
run.html.ejs
41 lines (40 loc) · 1.34 KB
/
run.html.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Jasmine suite</title>
<link rel="shortcut icon" type="image/png" href="/__images__/jasmine_favicon.png">
<% cssFiles.forEach(function(cssFile) { %>
<link rel="stylesheet" href="<%= cssFile %>" type="text/css" media="screen"/>
<% }) %>
<% if (importMap) { %>
<script type="importmap">
<%- JSON.stringify(importMap, null, 2) %>
</script>
<% } %>
</head>
<body>
<% jasmineJsFiles.forEach(function(jsFile) { %>
<script src="<%= jsFile %>" type="text/javascript"></script>
<% }) %>
<% if (enableTopLevelAwait) { %>
<script type="module">
await _jasmine_loadWithTopLevelAwaitSupport([
<% userJsFiles.forEach(function(jsFile) { %>
'<%= jsFile %>',
<% }) %>
], '<%=esmFilenameExtension%>');
</script>
<% } else { %>
<% userJsFiles.forEach(function(jsFile) { %>
<% if (jsFile.endsWith(esmFilenameExtension)) { %>
<script type="module">_jasmine_loadEsModule('<%= jsFile %>')</script>
<% } else { %>
<script src="<%= jsFile %>" type="text/javascript"></script>
<% } %>
<% }) %>
<% } %>
<div id="jasmine_content"></div>
</body>
</html>