From e67dc9251a38d19cf588eb226d32a67f4d71c7d7 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 6 May 2015 11:02:41 +0200 Subject: tweak to iframe lazy load test --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test.js') 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' ); }); -- cgit v1.2.3