|
@@ -39,12 +39,14 @@
|
|
<script type="module">
|
|
<script type="module">
|
|
|
|
|
|
import Reveal from '../dist/reveal.js';
|
|
import Reveal from '../dist/reveal.js';
|
|
|
|
+ import Zoom from '../plugin/zoom/zoom.js';
|
|
|
|
|
|
QUnit.module( 'Multiple reveal.js instances' );
|
|
QUnit.module( 'Multiple reveal.js instances' );
|
|
|
|
|
|
let r1 = new Reveal( document.querySelector( '.deck1 .reveal' ), {
|
|
let r1 = new Reveal( document.querySelector( '.deck1 .reveal' ), {
|
|
embedded: true,
|
|
embedded: true,
|
|
- keyboard: true
|
|
|
|
|
|
+ keyboard: true,
|
|
|
|
+ plugins: [Zoom]
|
|
} );
|
|
} );
|
|
r1.initialize();
|
|
r1.initialize();
|
|
|
|
|
|
@@ -71,6 +73,13 @@
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ QUnit.test( 'Can register plugins independently', function( assert ) {
|
|
|
|
+
|
|
|
|
+ assert.ok( r1.hasPlugin( 'zoom' ) );
|
|
|
|
+ assert.notOk( r2.hasPlugin( 'zoom' ) );
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+
|
|
</script>
|
|
</script>
|
|
<script>
|
|
<script>
|
|
QUnit.test( 'Reveal does not leak to window', function( assert ) {
|
|
QUnit.test( 'Reveal does not leak to window', function( assert ) {
|