context.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <!--
  3. This is the execution context.
  4. Loaded within the iframe.
  5. Reloaded before every execution run.
  6. -->
  7. <html>
  8. <head>
  9. <title></title>
  10. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  11. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
  12. </head>
  13. <body>
  14. <!-- The scripts need to be in the body DOM element, as some test running frameworks need the body
  15. to have already been created so they can insert their magic into it. For example, if loaded
  16. before body, Angular Scenario test framework fails to find the body and crashes and burns in
  17. an epic manner. -->
  18. <script src="context.js"></script>
  19. <script type="text/javascript">
  20. // Configure our Karma and set up bindings
  21. %CLIENT_CONFIG%
  22. window.__karma__.setupContext(window);
  23. // All served files with the latest timestamps
  24. %MAPPINGS%
  25. </script>
  26. <!-- Dynamically replaced with <script> tags -->
  27. %SCRIPTS%
  28. <script type="text/javascript">
  29. window.__karma__.loaded();
  30. </script>
  31. </body>
  32. </html>