Nessuna descrizione

index.html 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!doctype html>
  2. <html lang="en" id="html">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>jQuery Test Suite</title>
  6. <link rel="stylesheet" href="../external/qunit/qunit.css" />
  7. <link rel="stylesheet" href="data/testsuite.css" />
  8. <!--
  9. We have to use previous jQuery as helper to ensure testability with
  10. ajax-free builds (and non-interference when changing ajax internals)
  11. -->
  12. <script src="data/jquery-1.9.1.js"></script>
  13. <script src="../external/qunit/qunit.js"></script>
  14. <script src="../external/sinon/sinon.js"></script>
  15. <script src="../external/npo/npo.js"></script>
  16. <script src="../external/requirejs/require.js"></script>
  17. <!-- See testinit for the list of tests -->
  18. <script src="data/testinit.js"></script>
  19. <!-- A script that includes jQuery min, dev, or AMD -->
  20. <!-- Adds "basic" URL option, even to iframes -->
  21. <!-- iframes will not load AMD as loading needs to be synchronous for some tests -->
  22. <!-- Also executes the function above to load tests -->
  23. <script src="jquery.js"></script>
  24. <script>
  25. // Load tests if they have not been loaded
  26. // This is in a different script tag to ensure that
  27. // jQuery is on the page when the testrunner executes
  28. // QUnit.config is populated from QUnit.urlParams but only at the beginning
  29. // of the test run. We need to read both.
  30. var amd = QUnit.config.amd || QUnit.urlParams.amd;
  31. // Workaround: Remove call to `window.__karma__.loaded()`
  32. // in favour of calling `window.__karma__.start()` from `loadTests()`
  33. // because tests such as unit/ready.js should run after document ready.
  34. if ( !amd ) {
  35. loadTests();
  36. }
  37. </script>
  38. </head>
  39. <body id="body">
  40. <div id="qunit"></div>
  41. <!-- Test HTML -->
  42. <!-- 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 -->
  43. <iframe id="loadediframe" name="loadediframe" style="display:none;" src="data/iframe.html"></iframe>
  44. <div id="qunit-fixture"></div>
  45. <script src="data/qunit-fixture.js"></script>
  46. </body>
  47. </html>