From 12bad186b3cbb797caff67bfc969abdda1d80210 Mon Sep 17 00:00:00 2001 From: rwldrn Date: Tue, 14 Dec 2010 20:11:11 -0500 Subject: [PATCH] [#219] Missing coma on line 64; Causes leaks --- popcorn.js | 2 +- test/popcorn.unit.js | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/popcorn.js b/popcorn.js index 64b5faa..6268d78 100644 --- a/popcorn.js +++ b/popcorn.js @@ -61,7 +61,7 @@ that.video.addEventListener( "timeupdate", function( event ) { var currentTime = this.currentTime, - previousTime = that.data.trackEvents.previousUpdateTime + previousTime = that.data.trackEvents.previousUpdateTime, tracks = that.data.trackEvents, tracksByEnd = tracks.byEnd, tracksByStart = tracks.byStart; diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index e3a60b6..28352c9 100644 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -664,6 +664,19 @@ test("Protected Names", function () { }); +test("Last Check", function () { + + // ALWAYS RUN LAST + + expect(1) + try { + + equals( Setup.getGlobalSize(), Setup.globalSize + 1 , "Popcorn API did not leak"); + plus(); + + } catch (e) {}; + +}); /* -- 2.43.0