mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 13:43:09 +00:00
[Fixed Position] Add placeholder specs
Add placeholder specs for classes added to support selection of elements in a fixed position view, WTD-879.
This commit is contained in:
parent
7498e340d6
commit
14cbb9fb40
@ -1,8 +1,8 @@
|
||||
/*global define*/
|
||||
|
||||
define(
|
||||
['./Accessor'],
|
||||
function (Accessor) {
|
||||
['./AccessorMutator'],
|
||||
function (AccessorMutator) {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
@ -18,11 +18,11 @@ define(
|
||||
function ElementProxy(element, index, elements) {
|
||||
return {
|
||||
element: element,
|
||||
x: new Accessor(element, 'x'),
|
||||
y: new Accessor(element, 'y'),
|
||||
z: new Accessor(element, 'z'),
|
||||
width: new Accessor(element, 'width'),
|
||||
height: new Accessor(element, 'height'),
|
||||
x: new AccessorMutator(element, 'x'),
|
||||
y: new AccessorMutator(element, 'y'),
|
||||
z: new AccessorMutator(element, 'z'),
|
||||
width: new AccessorMutator(element, 'width'),
|
||||
height: new AccessorMutator(element, 'height'),
|
||||
remove: function () {
|
||||
if (elements[index] === element) {
|
||||
elements.splice(index, 1);
|
||||
|
12
platform/features/layout/test/FixedProxySpec.js
Normal file
12
platform/features/layout/test/FixedProxySpec.js
Normal file
@ -0,0 +1,12 @@
|
||||
/*global define,describe,it,expect,beforeEach,jasmine,xit*/
|
||||
|
||||
define(
|
||||
['../src/FixedProxy'],
|
||||
function (FixedProxy) {
|
||||
"use strict";
|
||||
|
||||
describe("Fixed Position view's selection proxy", function () {
|
||||
|
||||
});
|
||||
}
|
||||
);
|
12
platform/features/layout/test/LayoutSelectionSpec.js
Normal file
12
platform/features/layout/test/LayoutSelectionSpec.js
Normal file
@ -0,0 +1,12 @@
|
||||
/*global define,describe,it,expect,beforeEach,jasmine,xit*/
|
||||
|
||||
define(
|
||||
['../src/LayoutSelection'],
|
||||
function (LayoutSelection) {
|
||||
"use strict";
|
||||
|
||||
describe("Layout/fixed position selection manager", function () {
|
||||
|
||||
});
|
||||
}
|
||||
);
|
@ -0,0 +1,12 @@
|
||||
/*global define,describe,it,expect,beforeEach,jasmine*/
|
||||
|
||||
define(
|
||||
['../../src/elements/AccessorMutator'],
|
||||
function (AccessorMutator) {
|
||||
"use strict";
|
||||
|
||||
describe("An accessor-mutator", function () {
|
||||
|
||||
});
|
||||
}
|
||||
);
|
12
platform/features/layout/test/elements/ElementProxiesSpec.js
Normal file
12
platform/features/layout/test/elements/ElementProxiesSpec.js
Normal file
@ -0,0 +1,12 @@
|
||||
/*global define,describe,it,expect,beforeEach,jasmine*/
|
||||
|
||||
define(
|
||||
['../../src/elements/ElementProxies'],
|
||||
function (ElementProxies) {
|
||||
"use strict";
|
||||
|
||||
describe("The set of element proxies", function () {
|
||||
|
||||
});
|
||||
}
|
||||
);
|
12
platform/features/layout/test/elements/ElementProxySpec.js
Normal file
12
platform/features/layout/test/elements/ElementProxySpec.js
Normal file
@ -0,0 +1,12 @@
|
||||
/*global define,describe,it,expect,beforeEach,jasmine*/
|
||||
|
||||
define(
|
||||
['../../src/elements/ElementProxy'],
|
||||
function (ElementProxy) {
|
||||
"use strict";
|
||||
|
||||
describe("A fixed position element proxy", function () {
|
||||
|
||||
});
|
||||
}
|
||||
);
|
12
platform/features/layout/test/elements/TelemetryProxySpec.js
Normal file
12
platform/features/layout/test/elements/TelemetryProxySpec.js
Normal file
@ -0,0 +1,12 @@
|
||||
/*global define,describe,it,expect,beforeEach,jasmine*/
|
||||
|
||||
define(
|
||||
['../../src/elements/TelemetryProxy'],
|
||||
function (TelemetryProxy) {
|
||||
"use strict";
|
||||
|
||||
describe("A fixed position telemetry proxy", function () {
|
||||
|
||||
});
|
||||
}
|
||||
);
|
@ -1,5 +1,11 @@
|
||||
[
|
||||
"FixedController",
|
||||
"FixedProxy",
|
||||
"LayoutController",
|
||||
"LayoutDrag"
|
||||
"LayoutDrag",
|
||||
"LayoutSelection",
|
||||
"elements/AccessorMutator",
|
||||
"elements/ElementProxies",
|
||||
"elements/ElementProxy",
|
||||
"elements/TelemetryProxy"
|
||||
]
|
Loading…
Reference in New Issue
Block a user