From b98c1f2539ecb94809bd4db0ea705d59d7528bbe Mon Sep 17 00:00:00 2001 From: Anna Sobiepanek Date: Fri, 10 Dec 2010 17:03:32 -0500 Subject: [PATCH] changes made as per PR recommendations branch:footnotePlugin [#167 responsible:Rick] --- plugins/footnote/popcorn.footnote.unit.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/footnote/popcorn.footnote.unit.js b/plugins/footnote/popcorn.footnote.unit.js index 12fe5e3..c685888 100644 --- a/plugins/footnote/popcorn.footnote.unit.js +++ b/plugins/footnote/popcorn.footnote.unit.js @@ -3,10 +3,10 @@ test("Popcorn Footnote Plugin", function () { var popped = Popcorn("#video"), expects = 5, count = 0, - iframeInterval, - iframeInterval2, - iframeInterval3, - iframeInterval4; + interval, + interval2, + interval3, + footnotediv = document.getElementById('footnotediv'); expect(expects); @@ -21,7 +21,7 @@ test("Popcorn Footnote Plugin", function () { ok ('footnote' in popped, "footnote is a mehtod of the popped instance"); plus(); - ok ( document.getElementById('footnotediv').innerHTML === "", "initially, there is nothing inside the footnotediv" ); + equals ( footnotediv.innerHTML, "", "initially, there is nothing inside the footnotediv" ); plus(); popped.footnote({ @@ -41,7 +41,7 @@ test("Popcorn Footnote Plugin", function () { interval = setInterval( function() { if( popped.currentTime() > 5 && popped.currentTime() <= 15 ) { - ok (document.getElementById('footnotediv').innerHTML === "This video made exclusively for drumbeat.org", "footnote displaing correct information" ); + equals (footnotediv.innerHTML , "This video made exclusively for drumbeat.org", "footnote displaing correct information" ); plus(); clearInterval( interval ); } @@ -49,7 +49,7 @@ test("Popcorn Footnote Plugin", function () { interval2 = setInterval( function() { if( popped.currentTime() > 15 && popped.currentTime() < 35 ) { - ok (document.getElementById('footnotediv').innerHTML === "", "footnote cleared properly" ); + equals (footnotediv.innerHTML , "", "footnote cleared properly" ); plus(); clearInterval( interval2 ); } @@ -57,7 +57,7 @@ test("Popcorn Footnote Plugin", function () { interval3 = setInterval( function() { if( popped.currentTime() > 35 && popped.currentTime() < 45 ) { - ok (document.getElementById('footnotediv').innerHTML === "Visit webmademovies.org for more details", "footnote displaing correct information" ); + equals (footnotediv.innerHTML ,"Visit webmademovies.org for more details", "footnote displaing correct information" ); plus(); clearInterval( interval3 ); } -- 2.43.0