From: Christopher De Cairos Date: Tue, 13 Sep 2011 00:23:13 +0000 (-0400) Subject: fixed ninja tabs. moved cue tests into new test block. X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8c50c1e56db013faabf3d1eda941aee919cde7f7;p=popcorn-js.git fixed ninja tabs. moved cue tests into new test block. --- diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index 5d8c188..60a3ed9 100644 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -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"),