From 7a1b0947c377c0e5e39fd7369f8f7f38899f0806 Mon Sep 17 00:00:00 2001 From: Christopher De Cairos Date: Wed, 1 Jun 2011 15:06:32 -0400 Subject: [PATCH] more tests --- test/popcorn.unit.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index e5aed5b..ee9ecc5 100644 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -673,6 +673,7 @@ test("Simulated", function () { plus(); completed.push(name); + p.unlisten(name); } @@ -809,7 +810,7 @@ test("Manifest", function () { var p = Popcorn("#video"), - expects = 5, + expects = 8, run = 1, count = 0; @@ -873,6 +874,15 @@ test("Manifest", function () { // add more tests + equal ( typeof Popcorn.manifest.footnote === "object", true, "The footnote was inserted into the manifest correctly" ); + plus(); + + equal ( typeof Popcorn.manifest.footnote.about === "object" , true , "The footnote contains about object" ); + plus(); + + equal ( typeof Popcorn.manifest.footnote.options === "object", true , "The footnote contains an options object" ); + plus(); + p.footnote({}); p.footnote({ -- 2.43.0