From 8c50c1e56db013faabf3d1eda941aee919cde7f7 Mon Sep 17 00:00:00 2001 From: Christopher De Cairos Date: Mon, 12 Sep 2011 20:23:13 -0400 Subject: [PATCH] fixed ninja tabs. moved cue tests into new test block. --- test/popcorn.unit.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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"), -- 2.43.0