]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
fixed ninja tabs. moved cue tests into new test block. t715
authorChristopher De Cairos <chris.decairos@gmail.com>
Tue, 13 Sep 2011 00:23:13 +0000 (20:23 -0400)
committerChristopher De Cairos <chris.decairos@gmail.com>
Tue, 13 Sep 2011 00:23:13 +0000 (20:23 -0400)
test/popcorn.unit.js

index 5d8c188efaceba35f223e19ef49f0ef82fd3bf98..60a3ed969b2e2131a30b44ae4c4387abb7bdfa03 100644 (file)
@@ -511,7 +511,7 @@ test("exec", function() {
       hasLooped = false,
       loop = 0;
 
-  expect( expects + 4 );
+  expect( expects + 1 );
 
   function plus(){
     if ( ++count == expects ) {
@@ -519,9 +519,6 @@ test("exec", function() {
       setTimeout( function() {
 
         equals( loop, expects, "exec callback repeat check, only called twice" );
-        ok( Popcorn.p.cue, "Popcorn.p.cue exists" );
-                               equal( typeof Popcorn.p.cue, "function", "Popcorn.p.cue is a function" );
-                               deepEqual( Popcorn.p.cue, Popcorn.p.exec, "Popcorn.p.cue equals Popcorn.p.exec" );
         Popcorn.removePlugin( popped, "exec" );
         start();
 
@@ -545,6 +542,13 @@ test("exec", function() {
 
 });
 
+test( "cue (alias of exec)", function() {
+  expect( 3 );
+  ok( Popcorn.p.cue, "Popcorn.p.cue exists" ); 
+  equal( typeof Popcorn.p.cue, "function", "Popcorn.p.cue is a function" );
+  deepEqual( Popcorn.p.cue, Popcorn.p.exec, "Popcorn.p.cue equals Popcorn.p.exec" );
+});
+
 test("mute", function() {
 
   var video = Popcorn("#video"),