Ei kuvausta

karma.context.html 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!DOCTYPE html>
  2. <html lang="en" id="html">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>CONTEXT</title>
  6. <!-- Karma serves this page from /context.html. Other files are served from /base -->
  7. <link rel="stylesheet" href="/base/test/data/testsuite.css" />
  8. </head>
  9. <body id="body">
  10. <div id="qunit"></div>
  11. <!-- Start: jQuery Test HTML -->
  12. <!-- this iframe is outside the #qunit-fixture so it won't waste time by constantly reloading; the tests are "safe" and clean up after themselves -->
  13. <iframe id="loadediframe" name="loadediframe" style="display:none;" src="/base/test/data/iframe.html"></iframe>
  14. <div id="qunit-fixture"></div>
  15. <!-- End: jQuery Test HTML -->
  16. <!-- Start: Karma boilerplate -->
  17. <script src="/context.js"></script>
  18. <script>
  19. %CLIENT_CONFIG%
  20. window.__karma__.setupContext(window);
  21. %MAPPINGS%
  22. </script>
  23. %SCRIPTS%
  24. <!-- End: Karma boilerplate -->
  25. <script src="/base/test/data/qunit-fixture.js"></script>
  26. <script>
  27. // QUnit.config is populated from QUnit.urlParams but only at the beginning
  28. // of the test run. We need to read both.
  29. var amd = QUnit.config.amd || QUnit.urlParams.amd;
  30. // Workaround: Remove call to `window.__karma__.loaded()`
  31. // in favour of calling `window.__karma__.start()` from `loadTests()`
  32. // because tests such as unit/ready.js should run after document ready.
  33. if ( !amd ) {
  34. loadTests();
  35. }
  36. </script>
  37. </body>
  38. </html>