From 5a51bc42e851461199368cd5895b9ba4a5c92675 Mon Sep 17 00:00:00 2001 From: Mohammed Buttu Date: Wed, 18 May 2011 13:26:37 -0400 Subject: [PATCH] #332 Fixed number of unit tests --- plugins/image/popcorn.image.unit.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/image/popcorn.image.unit.js b/plugins/image/popcorn.image.unit.js index 43857be..868af3d 100644 --- a/plugins/image/popcorn.image.unit.js +++ b/plugins/image/popcorn.image.unit.js @@ -1,7 +1,7 @@ test("Popcorn Image Plugin", function () { var popped = Popcorn( "#video" ), - expects = 8, + expects = 9, count = 0, setupId, imagediv = document.getElementById( "imagediv" ), @@ -72,15 +72,17 @@ test("Popcorn Image Plugin", function () { popped.exec( 6, function() { [].forEach.call( document.querySelectorAll( "#imagediv a img" ), function( img, idx ) { + alert(idx + " src = " + img.src); ok( img.src === sources[ idx ], "Image " + idx + " is in the right order" ); plus(); + }); }); popped.exec( 8, function() { popped.pause().removeTrackEvent( setupId ); - ok( !imagediv.children[0], "removed image was properly destroyed" ); + ok( !imagediv.children[2], "removed image was properly destroyed" ); plus(); }); - + popped.volume( 0 ).play(); }); -- 2.43.0