From: Christopher De Cairos Date: Wed, 1 Jun 2011 19:06:32 +0000 (-0400) Subject: more tests X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=7a1b0947c377c0e5e39fd7369f8f7f38899f0806;p=popcorn-js.git more tests --- 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({