[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:
Victor Woeltjen 2015-02-19 12:19:46 -08:00
parent 7498e340d6
commit 14cbb9fb40
8 changed files with 86 additions and 8 deletions

View File

@ -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);

View 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 () {
});
}
);

View 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 () {
});
}
);

View File

@ -0,0 +1,12 @@
/*global define,describe,it,expect,beforeEach,jasmine*/
define(
['../../src/elements/AccessorMutator'],
function (AccessorMutator) {
"use strict";
describe("An accessor-mutator", function () {
});
}
);

View 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 () {
});
}
);

View 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 () {
});
}
);

View 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 () {
});
}
);

View File

@ -1,5 +1,11 @@
[
"FixedController",
"FixedProxy",
"LayoutController",
"LayoutDrag"
"LayoutDrag",
"LayoutSelection",
"elements/AccessorMutator",
"elements/ElementProxies",
"elements/ElementProxy",
"elements/TelemetryProxy"
]