mirror of
https://github.com/nasa/openmct.git
synced 2025-04-20 17:11:11 +00:00
[Gestures] Tests
Setup the gestures for the MCTPlot
This commit is contained in:
parent
6f130ae48c
commit
820960f879
@ -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]();
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user