blob: fdfe1964c9bcd90b2ee45d28f59ea34b0925f92f [file] [log] [blame]
Christophe Dervieuxe1893ae2021-10-07 17:09:02 +02001<!doctype html>
2<html lang="en">
3
4 <head>
5 <meta charset="utf-8">
6
7 <title>reveal.js - Test Dependencies</title>
8
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>
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>Slide content</section>
24
25 </div>
26
27 </div>
28
29 <script src="../dist/reveal.js"></script>
30 <script>
31 window.externalScriptSequence = '';
32
33 Reveal.initialize({
34 dependencies: [
35 { src: 'assets/external-script-a.js' },
36 { src: 'assets/external-script-b.js' },
37 { src: 'assets/external-script-c.js' }
38 ]
39 }).then( () => {
40
41 QUnit.module( 'Dependencies' );
42
43 QUnit.test( 'Load synchronous scripts', function( assert ) {
44 assert.strictEqual( window.externalScriptSequence, 'ABC', 'Loaded and executed in order' );
45 });
46
47 } );
48 </script>
49
50 </body>
51</html>