JJ Allaire | efa6ad4 | 2016-01-30 13:12:05 -0500 | [diff] [blame] | 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | |
| 4 | <head> |
| 5 | <meta charset="utf-8"> |
| 6 | |
| 7 | <title>reveal.js - Test PDF exports</title> |
| 8 | |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 9 | <link rel="stylesheet" href="../dist/reveal.css"> |
| 10 | <link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css"> |
| 11 | <script src="../node_modules/qunit/qunit/qunit.js"></script> |
JJ Allaire | efa6ad4 | 2016-01-30 13:12:05 -0500 | [diff] [blame] | 12 | </head> |
| 13 | |
| 14 | <body style="overflow: auto;"> |
| 15 | |
| 16 | <div id="qunit"></div> |
| 17 | <div id="qunit-fixture"></div> |
| 18 | |
| 19 | <div class="reveal" style="display: none;"> |
| 20 | |
| 21 | <div class="slides"> |
| 22 | |
| 23 | <section> |
| 24 | <h1>1</h1> |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 25 | <img data-src=""> |
JJ Allaire | efa6ad4 | 2016-01-30 13:12:05 -0500 | [diff] [blame] | 26 | </section> |
| 27 | |
| 28 | <section> |
| 29 | <section> |
| 30 | <h1>2.1</h1> |
| 31 | </section> |
| 32 | <section> |
| 33 | <h1>2.2</h1> |
| 34 | </section> |
| 35 | <section> |
| 36 | <h1>2.3</h1> |
| 37 | </section> |
| 38 | </section> |
| 39 | |
| 40 | <section id="fragment-slides"> |
| 41 | <section> |
| 42 | <h1>3.1</h1> |
| 43 | <ul> |
| 44 | <li class="fragment">4.1</li> |
| 45 | <li class="fragment">4.2</li> |
| 46 | <li class="fragment">4.3</li> |
| 47 | </ul> |
| 48 | </section> |
| 49 | |
| 50 | <section> |
| 51 | <h1>3.2</h1> |
| 52 | <ul> |
| 53 | <li class="fragment" data-fragment-index="0">4.1</li> |
| 54 | <li class="fragment" data-fragment-index="0">4.2</li> |
| 55 | </ul> |
| 56 | </section> |
| 57 | |
| 58 | <section> |
| 59 | <h1>3.3</h1> |
| 60 | <ul> |
| 61 | <li class="fragment" data-fragment-index="1">3.3.1</li> |
| 62 | <li class="fragment" data-fragment-index="4">3.3.2</li> |
| 63 | <li class="fragment" data-fragment-index="4">3.3.3</li> |
| 64 | </ul> |
| 65 | </section> |
| 66 | </section> |
| 67 | |
| 68 | <section> |
| 69 | <h1>4</h1> |
| 70 | </section> |
| 71 | |
| 72 | </div> |
| 73 | |
| 74 | </div> |
| 75 | |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 76 | <script src="../dist/reveal.js"></script> |
| 77 | <script> |
| 78 | Reveal.initialize({ pdf: true }).then( function() { |
JJ Allaire | efa6ad4 | 2016-01-30 13:12:05 -0500 | [diff] [blame] | 79 | |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 80 | // Only one test for now, we're mainly ensuring that there |
| 81 | // are no execution errors when running PDF mode |
| 82 | |
| 83 | QUnit.test( 'Reveal.isReady', function( assert ) { |
| 84 | assert.strictEqual( Reveal.isReady(), true, 'returns true' ); |
| 85 | }); |
| 86 | |
| 87 | } ); |
| 88 | |
| 89 | </script> |
JJ Allaire | efa6ad4 | 2016-01-30 13:12:05 -0500 | [diff] [blame] | 90 | |
| 91 | </body> |
| 92 | </html> |