1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-09-02 11:12:47 +02:00

Update QUnit to 2.5.0 and grunt-contrib-qunit to 2.0.0.

This commit is contained in:
Benjamin Tan
2018-01-22 22:35:15 +08:00
parent f0fa6fb226
commit f9d0766637
19 changed files with 5887 additions and 2738 deletions

View File

@@ -2,15 +2,15 @@ Reveal.addEventListener( 'ready', function() {
QUnit.module( 'Markdown' );
test( 'Options are set', function() {
strictEqual( marked.defaults.smartypants, true );
QUnit.test( 'Options are set', function( assert ) {
assert.strictEqual( marked.defaults.smartypants, true );
});
test( 'Smart quotes are activated', function() {
QUnit.test( 'Smart quotes are activated', function( assert ) {
var text = document.querySelector( '.reveal .slides>section>p' ).textContent;
strictEqual( /['"]/.test( text ), false );
strictEqual( /[“”‘’]/.test( text ), true );
assert.strictEqual( /['"]/.test( text ), false );
assert.strictEqual( /[“”‘’]/.test( text ), true );
});
} );
@@ -18,7 +18,8 @@ Reveal.addEventListener( 'ready', function() {
Reveal.initialize({
dependencies: [
{ src: '../plugin/markdown/marked.js' },
{ src: '../plugin/markdown/markdown.js' },
// Test loading JS files with query strings
{ src: '../plugin/markdown/markdown.js?query=string' },
],
markdown: {
smartypants: true