test-markdown-external.js 678 B

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