From 503d2fee4fb17ce54a39ec6d3639dc11080cd80d Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Fri, 25 Feb 2011 12:00:40 -0500 Subject: [PATCH] [#369] default start and end test --- test/popcorn.unit.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index d264316..b4b1e7c 100755 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -582,7 +582,7 @@ test("Plugin Factory", function () { var popped = Popcorn("#video"), methods = "load play pause currentTime mute volume roundTime exec removePlugin", - expects = 48, + expects = 50, count = 0; //expect(expects); @@ -593,6 +593,7 @@ test("Plugin Factory", function () { Popcorn.removePlugin("executor"); Popcorn.removePlugin("complicator"); Popcorn.removePlugin("closure"); + Popcorn.removePlugin("empty"); start(); } } @@ -781,6 +782,17 @@ test("Plugin Factory", function () { nick: "second closure track" }); + var testObj = {}; + + Popcorn.plugin("empty", testObj); + + popped.empty({}); + + ok( testObj.start, "default start function is generated" ); + plus(); + ok( testObj.end, "default end function is generated" ); + plus(); + popped.currentTime(0).play(); }); -- 2.43.0