CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

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