1 | <!doctype html>
|
---|
2 | <!--
|
---|
3 | This file is almost the same as context.html - loads all source files,
|
---|
4 | but its purpose is to be loaded in the main frame (not within an iframe),
|
---|
5 | just for immediate execution, without reporting to Karma server.
|
---|
6 | -->
|
---|
7 | <html>
|
---|
8 | <head>
|
---|
9 | %X_UA_COMPATIBLE%
|
---|
10 | <title>Karma DEBUG RUNNER</title>
|
---|
11 | <link href="favicon.ico" rel="icon" type="image/x-icon" />
|
---|
12 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
---|
13 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
---|
14 | </head>
|
---|
15 | <body>
|
---|
16 | <!-- The scripts need to be at the end of body, so that some test running frameworks
|
---|
17 | (Angular Scenario, for example) need the body to be loaded so that it can insert its magic
|
---|
18 | into it. If it is before body, then it fails to find the body and crashes and burns in an epic
|
---|
19 | manner. -->
|
---|
20 | <script src="context.js"></script>
|
---|
21 | <script src="debug.js"></script>
|
---|
22 | <script type="text/javascript">
|
---|
23 | // Configure our Karma
|
---|
24 | %CLIENT_CONFIG%
|
---|
25 |
|
---|
26 | // All served files with the latest timestamps
|
---|
27 | %MAPPINGS%
|
---|
28 | </script>
|
---|
29 | <!-- Dynamically replaced with <script> tags -->
|
---|
30 | %SCRIPTS%
|
---|
31 | <!-- Since %SCRIPTS% might include modules, the `loaded()` call needs to be in a module too.
|
---|
32 | This ensures all the tests will have been declared before karma tries to run them. -->
|
---|
33 | <script type="module">
|
---|
34 | window.__karma__.loaded();
|
---|
35 | </script>
|
---|
36 | <script nomodule>
|
---|
37 | window.__karma__.loaded();
|
---|
38 | </script>
|
---|
39 | </body>
|
---|
40 | </html>
|
---|