1
0

test-pdf.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - Test PDF exports</title>
  6. </head>
  7. <body style="overflow: auto;">
  8. <div id="qunit"></div>
  9. <div id="qunit-fixture"></div>
  10. <div class="reveal" style="display: none;">
  11. <div class="slides">
  12. <section>
  13. <h1>1</h1>
  14. <img data-src="">
  15. </section>
  16. <section>
  17. <section>
  18. <h1>2.1</h1>
  19. </section>
  20. <section>
  21. <h1>2.2</h1>
  22. </section>
  23. <section>
  24. <h1>2.3</h1>
  25. </section>
  26. </section>
  27. <section id="fragment-slides">
  28. <section>
  29. <h1>3.1</h1>
  30. <ul>
  31. <li class="fragment">4.1</li>
  32. <li class="fragment">4.2</li>
  33. <li class="fragment">4.3</li>
  34. </ul>
  35. </section>
  36. <section>
  37. <h1>3.2</h1>
  38. <ul>
  39. <li class="fragment" data-fragment-index="0">4.1</li>
  40. <li class="fragment" data-fragment-index="0">4.2</li>
  41. </ul>
  42. </section>
  43. <section>
  44. <h1>3.3</h1>
  45. <ul>
  46. <li class="fragment" data-fragment-index="1">3.3.1</li>
  47. <li class="fragment" data-fragment-index="4">3.3.2</li>
  48. <li class="fragment" data-fragment-index="4">3.3.3</li>
  49. </ul>
  50. </section>
  51. </section>
  52. <section>
  53. <h1>4</h1>
  54. </section>
  55. </div>
  56. </div>
  57. <script type="module">
  58. import 'reveal.css';
  59. import 'qunit/qunit/qunit.css';
  60. import QUnit from 'qunit';
  61. import Reveal from 'reveal.js';
  62. QUnit.config.testTimeout = 30000;
  63. QUnit.config.autostart = false;
  64. Reveal.initialize({ pdf: true }).then( function() {
  65. QUnit.start();
  66. // Only one test for now, we're mainly ensuring that there
  67. // are no execution errors when running PDF mode
  68. QUnit.test( 'Reveal.isReady', function( assert ) {
  69. assert.strictEqual( Reveal.isReady(), true, 'returns true' );
  70. });
  71. } );
  72. </script>
  73. </body>
  74. </html>