blob: e72de7a5d2a04decafdd75e074d9bc634761cc98 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Reveal.addEventListener('ready', function () {
QUnit.module('Markdown');
QUnit.test('Vertical separator', function (assert) {
assert.strictEqual(document.querySelectorAll('.reveal .slides>section>section').length, 2, 'found two slides');
});
QUnit.test('Horizontal separator', function (assert) {
assert.strictEqual(document.querySelectorAll('.reveal .slides>section').length, 2, 'found two slides');
});
QUnit.test('Language highlighter', function (assert) {
assert.strictEqual(document.querySelectorAll('.hljs-keyword').length, 1, 'got rendered highlight tag.');
assert.strictEqual(document.querySelector('.hljs-keyword').innerHTML, 'var', 'the same keyword: var.');
});
});
Reveal.initialize();
|