mirror of
https://github.com/nasa/openmct.git
synced 2025-05-09 20:12:50 +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*/
|
/*global define*/
|
||||||
|
|
||||||
define(
|
define(
|
||||||
['./Accessor'],
|
['./AccessorMutator'],
|
||||||
function (Accessor) {
|
function (AccessorMutator) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -18,11 +18,11 @@ define(
|
|||||||
function ElementProxy(element, index, elements) {
|
function ElementProxy(element, index, elements) {
|
||||||
return {
|
return {
|
||||||
element: element,
|
element: element,
|
||||||
x: new Accessor(element, 'x'),
|
x: new AccessorMutator(element, 'x'),
|
||||||
y: new Accessor(element, 'y'),
|
y: new AccessorMutator(element, 'y'),
|
||||||
z: new Accessor(element, 'z'),
|
z: new AccessorMutator(element, 'z'),
|
||||||
width: new Accessor(element, 'width'),
|
width: new AccessorMutator(element, 'width'),
|
||||||
height: new Accessor(element, 'height'),
|
height: new AccessorMutator(element, 'height'),
|
||||||
remove: function () {
|
remove: function () {
|
||||||
if (elements[index] === element) {
|
if (elements[index] === element) {
|
||||||
elements.splice(index, 1);
|
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",
|
"FixedController",
|
||||||
|
"FixedProxy",
|
||||||
"LayoutController",
|
"LayoutController",
|
||||||
"LayoutDrag"
|
"LayoutDrag",
|
||||||
|
"LayoutSelection",
|
||||||
|
"elements/AccessorMutator",
|
||||||
|
"elements/ElementProxies",
|
||||||
|
"elements/ElementProxy",
|
||||||
|
"elements/TelemetryProxy"
|
||||||
]
|
]
|
Loading…
x
Reference in New Issue
Block a user