您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

test-dependencies.html 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - Test Dependencies</title>
  6. <link rel="stylesheet" href="../dist/reveal.css">
  7. <link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css">
  8. <script src="../node_modules/qunit/qunit/qunit.js"></script>
  9. </head>
  10. <body style="overflow: auto;">
  11. <div id="qunit"></div>
  12. <div id="qunit-fixture"></div>
  13. <div class="reveal" style="display: none;">
  14. <div class="slides">
  15. <section>Slide content</section>
  16. </div>
  17. </div>
  18. <script src="../dist/reveal.js"></script>
  19. <script>
  20. window.externalScriptSequence = '';
  21. QUnit.config.testTimeout = 30000;
  22. QUnit.config.autostart = false;
  23. QUnit.module( 'Dependencies' );
  24. Reveal.initialize({
  25. dependencies: [
  26. { src: 'assets/external-script-a.js' },
  27. { src: 'assets/external-script-b.js' },
  28. { src: 'assets/external-script-c.js' }
  29. ]
  30. }).then( () => {
  31. QUnit.start();
  32. QUnit.test( 'Load synchronous scripts', function( assert ) {
  33. assert.strictEqual( window.externalScriptSequence, 'ABC', 'Loaded and executed in order' );
  34. });
  35. } );
  36. </script>
  37. </body>
  38. </html>