From e36d9d3594c2b6a4fc1b7d27398b3a3b3f0223fd Mon Sep 17 00:00:00 2001 From: rwldrn Date: Tue, 8 Mar 2011 15:11:16 -0500 Subject: [PATCH] [#390] Adds removeInstanceById existance test --- plugins/index.html | 58 ++++++++++++++++++++++++++++++++++++++++++++ test/outbound.html | 41 +++++++++++++++++++++++++++++++ test/popcorn.unit.js | 5 +++- 3 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 plugins/index.html create mode 100644 test/outbound.html 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(); -- 2.43.0