| <title>reveal.js - Test Dependencies</title> |
| <link rel="stylesheet" href="../dist/reveal.css"> |
| <link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css"> |
| <script src="../node_modules/qunit/qunit/qunit.js"></script> |
| <body style="overflow: auto;"> |
| <div id="qunit-fixture"></div> |
| <div class="reveal" style="display: none;"> |
| <section>Slide content</section> |
| <script src="../dist/reveal.js"></script> |
| window.externalScriptSequence = ''; |
| QUnit.config.testTimeout = 30000; |
| QUnit.config.autostart = false; |
| QUnit.module( 'Dependencies' ); |
| { src: 'assets/external-script-a.js' }, |
| { src: 'assets/external-script-b.js' }, |
| { src: 'assets/external-script-c.js' } |
| QUnit.test( 'Load synchronous scripts', function( assert ) { |
| assert.strictEqual( window.externalScriptSequence, 'ABC', 'Loaded and executed in order' ); |