]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
fixed tests that always fail due to slow execution
authorChristopher De Cairos <chris.decairos@gmail.com>
Wed, 18 May 2011 13:47:02 +0000 (09:47 -0400)
committerChristopher De Cairos <chris.decairos@gmail.com>
Wed, 18 May 2011 13:47:02 +0000 (09:47 -0400)
plugins/subtitle/popcorn.subtitle.unit.js

index ac118c798cc09ae1cfd79b80c609284e59ed2f25..b7d75b806399d9335d8f89516f5227472c569aab 100644 (file)
@@ -51,6 +51,9 @@ test("Popcorn Subtitle Plugin", function () {
 
   popped.exec( 0.5, function() {
 
+    equals( subtitlediv.innerHTML, "this is the first subtitle of 2011", "subtitle displaying correct information" );
+    plus();
+
     // capturing location now, to check against later,
     // a subtitle must be displayed to get valid data
     // which is why we do this in exec
@@ -62,8 +65,7 @@ test("Popcorn Subtitle Plugin", function () {
     popped.media.style.left = "400px";
     popped.media.style.top = "600px";
 
-    equals( subtitlediv.innerHTML, "this is the first subtitle of 2011", "subtitle displaying correct information" );
-    plus();
+    
   });
 
   popped.exec( 1.5, function() {