diff options
author | Hakim El Hattab | 2015-05-06 11:02:41 +0200 |
---|---|---|
committer | Hakim El Hattab | 2015-05-06 11:02:41 +0200 |
commit | e67dc9251a38d19cf588eb226d32a67f4d71c7d7 (patch) | |
tree | 356b555b528c2590ae92034e4d60913c3618cf9e /test/test.js | |
parent | 3cd871eac0d1b737b344fc79fdafde22be848896 (diff) |
tweak to iframe lazy load test
Diffstat (limited to 'test/test.js')
-rw-r--r-- | test/test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.js b/test/test.js index d59ddfa..ff32ee8 100644 --- a/test/test.js +++ b/test/test.js @@ -498,9 +498,9 @@ Reveal.addEventListener( 'ready', function() { test( 'iframe with data-src', function() { Reveal.slide( 0, 0 ); strictEqual( document.querySelectorAll( '.reveal section iframe[src]' ).length, 0, 'Iframe source is not set' ); - Reveal.slide( 2, 0 ); - strictEqual( document.querySelectorAll( '.reveal section iframe[src]' ).length, 1, 'Iframe source is set' ); Reveal.slide( 2, 1 ); + strictEqual( document.querySelectorAll( '.reveal section iframe[src]' ).length, 1, 'Iframe source is set' ); + Reveal.slide( 2, 2 ); strictEqual( document.querySelectorAll( '.reveal section iframe[src]' ).length, 0, 'Iframe source is not set' ); }); |