[Build] Remove unused variables from specs
...to satisfy JSHint.
This commit is contained in:
@@ -32,7 +32,6 @@ define(
|
||||
mockCompositionCapability,
|
||||
mockComposition,
|
||||
mockUnlisten,
|
||||
mockFormUnlisten,
|
||||
mockChildOne,
|
||||
mockChildTwo,
|
||||
model,
|
||||
|
||||
@@ -25,8 +25,7 @@ define(
|
||||
function (PlotOptionsForm) {
|
||||
|
||||
describe("The Plot Options form", function () {
|
||||
var plotOptionsForm,
|
||||
listener;
|
||||
var plotOptionsForm;
|
||||
|
||||
beforeEach(function () {
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ define(
|
||||
testRange,
|
||||
mockTelemetryObjects,
|
||||
testData,
|
||||
mockLimitCapabilities,
|
||||
tracker;
|
||||
|
||||
beforeEach(function () {
|
||||
|
||||
@@ -61,6 +61,8 @@ define(
|
||||
var datas = [makeMockData(1)],
|
||||
preparer = new PlotPreparer(datas, "testDomain", "testRange");
|
||||
|
||||
expect(preparer).toBeDefined();
|
||||
|
||||
expect(datas[0].getDomainValue).toHaveBeenCalledWith(
|
||||
jasmine.any(Number),
|
||||
"testDomain"
|
||||
|
||||
@@ -30,20 +30,11 @@ define(
|
||||
describe("Overlaid plot mode", function () {
|
||||
var mockDomainObject,
|
||||
mockSubPlotFactory,
|
||||
mockSubPlot,
|
||||
mockPrepared,
|
||||
testBuffers,
|
||||
testDrawingObjects,
|
||||
mode;
|
||||
|
||||
function mockElement(x, y, w, h) {
|
||||
return {
|
||||
getBoundingClientRect: function () {
|
||||
return { left: x, top: y, width: w, height: h };
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function createMockSubPlot() {
|
||||
var mockSubPlot = jasmine.createSpyObj(
|
||||
"subPlot",
|
||||
@@ -127,7 +118,7 @@ define(
|
||||
mode.plotTelemetry(mockPrepared);
|
||||
|
||||
// Should have one sub-plot with three lines
|
||||
testDrawingObjects.forEach(function (testDrawingObject, i) {
|
||||
testDrawingObjects.forEach(function (testDrawingObject) {
|
||||
// Either empty list or undefined is fine;
|
||||
// just want to make sure there are no lines.
|
||||
expect(testDrawingObject.lines.length)
|
||||
@@ -178,7 +169,7 @@ define(
|
||||
});
|
||||
|
||||
// Step back the same number of zoom changes
|
||||
mockSubPlotFactory.createSubPlot.calls.forEach(function (c) {
|
||||
mockSubPlotFactory.createSubPlot.calls.forEach(function () {
|
||||
// Should still be zoomed at start of each iteration
|
||||
expect(mode.isZoomed()).toBeTruthy();
|
||||
// Step back one of the zoom changes.
|
||||
|
||||
@@ -30,20 +30,11 @@ define(
|
||||
describe("Stacked plot mode", function () {
|
||||
var mockDomainObject,
|
||||
mockSubPlotFactory,
|
||||
mockSubPlot,
|
||||
mockPrepared,
|
||||
testBuffers,
|
||||
testDrawingObjects,
|
||||
mode;
|
||||
|
||||
function mockElement(x, y, w, h) {
|
||||
return {
|
||||
getBoundingClientRect: function () {
|
||||
return { left: x, top: y, width: w, height: h };
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function createMockSubPlot() {
|
||||
var mockSubPlot = jasmine.createSpyObj(
|
||||
"subPlot",
|
||||
@@ -172,7 +163,7 @@ define(
|
||||
});
|
||||
|
||||
// Step back the same number of zoom changes
|
||||
mockSubPlotFactory.createSubPlot.calls.forEach(function (c) {
|
||||
mockSubPlotFactory.createSubPlot.calls.forEach(function () {
|
||||
// Should still be zoomed at start of each iteration
|
||||
expect(mode.isZoomed()).toBeTruthy();
|
||||
// Step back
|
||||
|
||||
Reference in New Issue
Block a user