]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
more tests
authorChristopher De Cairos <chris.decairos@gmail.com>
Wed, 1 Jun 2011 19:06:32 +0000 (15:06 -0400)
committerChristopher De Cairos <chris.decairos@gmail.com>
Wed, 1 Jun 2011 19:06:32 +0000 (15:06 -0400)
test/popcorn.unit.js

index e5aed5b14d28abb867820e337a77546451341ce6..ee9ecc5e1a0fba14751c39f5461c9b86fd62b058 100644 (file)
@@ -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({