aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2015-05-06 11:02:41 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2015-05-06 11:02:41 +0200
commite67dc9251a38d19cf588eb226d32a67f4d71c7d7 (patch)
tree356b555b528c2590ae92034e4d60913c3618cf9e /test
parent3cd871eac0d1b737b344fc79fdafde22be848896 (diff)
downloadperl-software-in-gnu-guix-e67dc9251a38d19cf588eb226d32a67f4d71c7d7.tar
perl-software-in-gnu-guix-e67dc9251a38d19cf588eb226d32a67f4d71c7d7.tar.gz
tweak to iframe lazy load test
Diffstat (limited to 'test')
-rw-r--r--test/test.html2
-rw-r--r--test/test.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/test.html b/test/test.html
index 18f7504..93de5b1 100644
--- a/test/test.html
+++ b/test/test.html
@@ -44,7 +44,6 @@
<li class="fragment">4.2</li>
<li class="fragment">4.3</li>
</ul>
- <iframe data-src="http://example.com"></iframe>
</section>
<section>
@@ -53,6 +52,7 @@
<li class="fragment" data-fragment-index="0">4.1</li>
<li class="fragment" data-fragment-index="0">4.2</li>
</ul>
+ <iframe data-src="http://example.com"></iframe>
</section>
<section>
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' );
});