UnitTests.html 992 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ThreeJS Unit Tests - Using Files in /src</title>
  6. <!-- if we don't set favicon here, we have to intercept the request for it in puppeteer page to prevent console error -->
  7. <link rel="icon" type="image/x-icon" href="/files/favicon.ico" />
  8. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/qunit@2.25.0/qunit/qunit.css">
  9. </head>
  10. <body>
  11. <div id="qunit"></div>
  12. <div id="qunit-fixture"></div>
  13. <script src="https://cdn.jsdelivr.net/npm/qunit@2.25.0/qunit/qunit.min.js"></script>
  14. <script type="importmap">
  15. {
  16. "imports": {
  17. "three": "../../build/three.module.js"
  18. }
  19. }
  20. </script>
  21. <script type="module">
  22. window.QUnit.on( 'runEnd', ( runEnd ) => {
  23. // using these later in puppeteer.unit.js
  24. window._QUnitStats = runEnd.testCounts;
  25. } );
  26. </script>
  27. <!-- add sources to test below -->
  28. <script src="./three.source.unit.js" type="module"></script>
  29. </body>
  30. </html>
粤ICP备19079148号