mirror of
https://github.com/nasa/openmct.git
synced 2025-04-19 08:36:24 +00:00
[Gestures] Tests
Created initialization of variables and components to MCTChart additions.
This commit is contained in:
parent
8920b5454b
commit
4e44571819
@ -22,15 +22,38 @@
|
||||
/*global define,Promise,describe,it,expect,xit,beforeEach,waitsFor,jasmine*/
|
||||
|
||||
define(
|
||||
["../src/directives/MCTChart"],
|
||||
["../../src/directives/MCTChart"],
|
||||
function (MCTChart) {
|
||||
"use strict";
|
||||
|
||||
describe("The MCT Chart directive", function () {
|
||||
var mockScope;
|
||||
var mockInterval,
|
||||
mockLog,
|
||||
mockAgentService,
|
||||
mockScope,
|
||||
mockElement,
|
||||
mockCanvas,
|
||||
mctChart;
|
||||
|
||||
|
||||
beforeEach(function () {
|
||||
mockInterval =
|
||||
jasmine.createSpyObj("$interval", [ "cancel" ]);
|
||||
mockLog = jasmine.createSpyObj("$log", [ "warn" ]);
|
||||
mockAgentService = jasmine.createSpyObj("agentService", ["isMobile"]);
|
||||
mockCanvas = jasmine.createSpyObj("canvas", [ "getContext", "addEventListener" ]);
|
||||
mockScope =
|
||||
jasmine.createSpyObj("$scope", [ "$on", "$watch", "series", "viewport", "rectangles" ]);
|
||||
mockElement =
|
||||
jasmine.createSpyObj("$element", [ "find" ]);
|
||||
|
||||
mctChart = new MCTChart(mockInterval, mockAgentService);
|
||||
});
|
||||
|
||||
it("Calls", function() {
|
||||
mockElement.find.andReturn([mockCanvas]);
|
||||
|
||||
//mctChart.link(mockScope, mockElement);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
[
|
||||
"controllers/PlotController"
|
||||
"controllers/PlotController",
|
||||
"directives/MCTChart"
|
||||
]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user