From: rwldrn Date: Tue, 8 Mar 2011 20:11:16 +0000 (-0500) Subject: [#390] Adds removeInstanceById existance test X-Git-Tag: v0.4~23 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e36d9d3594c2b6a4fc1b7d27398b3a3b3f0223fd;p=popcorn-js.git [#390] Adds removeInstanceById existance test --- diff --git a/plugins/index.html b/plugins/index.html new file mode 100644 index 0000000..1451fc2 --- /dev/null +++ b/plugins/index.html @@ -0,0 +1,58 @@ + + + + Popcorn Plug-in Unit Tests + + +
+

Popcorn Plug-in Unit Tests

+ + +
+ + + + diff --git a/test/outbound.html b/test/outbound.html new file mode 100644 index 0000000..73948da --- /dev/null +++ b/test/outbound.html @@ -0,0 +1,41 @@ + + + + Popcorn API: Outbound Link Pausing + + + + + + + + + + + + diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index a13ce55..56a061e 100755 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -68,7 +68,7 @@ test("Utility", function () { }); test("Instances", function() { - var expects = 10, + var expects = 11, count = 0, instance; @@ -90,6 +90,9 @@ test("Instances", function() { ok( typeof Popcorn.getInstanceById === "function" , "Popcorn.getInstanceById is a provided utility function"); plus(); + + ok( typeof Popcorn.removeInstanceById === "function" , "Popcorn.removeInstanceById is a provided utility function"); + plus(); ok( typeof Popcorn.instanceIds === "object" , "Popcorn.instanceIds is a provided cache object"); plus();