From 820960f879dcf6b941d15c042431ec00aae232b3 Mon Sep 17 00:00:00 2001 From: Shivam Dave Date: Fri, 4 Sep 2015 14:52:14 -0700 Subject: [PATCH] [Gestures] Tests Setup the gestures for the MCTPlot --- .../test/directives/MCTPlotSpec.js | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/platform/features/plot-reborn/test/directives/MCTPlotSpec.js b/platform/features/plot-reborn/test/directives/MCTPlotSpec.js index 0753b90b0a..2cbbb75d81 100644 --- a/platform/features/plot-reborn/test/directives/MCTPlotSpec.js +++ b/platform/features/plot-reborn/test/directives/MCTPlotSpec.js @@ -44,12 +44,35 @@ define( mockElement.find.andReturn(mockCanvas); mctPlot = new MCTPlot(); - }); - - it("link called", function() { mctPlot.link(mockScope, mockElement); }); + + it("Start Pinch", function() { + console.log(mockScope.$on.calls[0]); + //mockScope.$on.calls[0].args[1](); + }); + + it("Change Pinch", function() { + console.log(mockScope.$on.calls[1]); + //mockScope.$on.calls[1].args[1](); + }); + + it("Start Pan", function() { + console.log(mockScope.$on.calls[2]); + //mockScope.$on.calls[2].args[1](); + }); + + it("Change Pan", function() { + console.log(mockScope.$on.calls[3]); + //mockScope.$on.calls[3].args[1](); + }); + + it("Touch End", function() { + console.log(mockScope.$on.calls[4]); + //mockScope.$on.calls[4].args[1](); + }); + }); } );