[Gestures] Tests

Setup the gestures for the MCTPlot
This commit is contained in:
Shivam Dave 2015-09-04 14:52:14 -07:00
parent 6f130ae48c
commit 820960f879

View File

@ -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]();
});
});
}
);