test-markdown-external.js 744 B

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