]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#685] fixed an issue where a footnote unit test was being run twice
authorScottDowne <sdowne@learn.senecac.on.ca>
Mon, 29 Aug 2011 16:53:33 +0000 (12:53 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Mon, 29 Aug 2011 16:53:33 +0000 (12:53 -0400)
plugins/footnote/popcorn.footnote.unit.js

index dbdf83f16a850aa3b417da0f0240201ce39662f6..f35c3661e62e640ddfa6a193b1e9208aa2e51ae6 100755 (executable)
@@ -84,18 +84,19 @@ test("Popcorn Text Plugin", function () {
   plus();
 
   popped.text({
-    start: 0, // seconds
-    end: 3, // seconds
+    start: 5, // seconds
+    end: 6, // seconds
     text: "I am an alias",
     target: "textdiv"
   });
 
   stop();
 
-  popped.exec( 2, function() {
+  popped.exec( 5, function() {
 
     equal( textdiv.children[0].innerHTML , "I am an alias", "I am an alias set by Popcorn.p.text" );
     plus();
 
-  }).currentTime(1).play();
+    popped.pause();
+  }).currentTime(5).play();
 });