refactor unit tests, now consistently initializing reveal.js in the same way
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
<link rel="stylesheet" href="../dist/reveal.css">
|
||||
<link rel="stylesheet" href="../css/print/pdf.css">
|
||||
<link rel="stylesheet" href="qunit-2.5.0.css">
|
||||
<script src="qunit-2.5.0.js"></script>
|
||||
</head>
|
||||
|
||||
<body style="overflow: auto;">
|
||||
@ -74,9 +75,19 @@
|
||||
</div>
|
||||
|
||||
<script src="../dist/reveal.min.js"></script>
|
||||
<script src="qunit-2.5.0.js"></script>
|
||||
<script>
|
||||
Reveal.initialize({ pdf: true }).then( function() {
|
||||
|
||||
<script src="test-pdf.js"></script>
|
||||
// Only one test for now, we're mainly ensuring that there
|
||||
// are no execution errors when running PDF mode
|
||||
|
||||
QUnit.test( 'Reveal.isReady', function( assert ) {
|
||||
assert.strictEqual( Reveal.isReady(), true, 'returns true' );
|
||||
});
|
||||
|
||||
} );
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user