mirror of
https://github.com/nasa/openmct.git
synced 2025-01-02 03:16:41 +00:00
[Edit] Stub in specs for Edit policies
Stub in specs for policies added for Edit mode which control the availability of the Edit and/or Edit Properties actions in the view-control area, WTD-1062.
This commit is contained in:
parent
0ceb8d30cf
commit
e2c6db8259
30
platform/commonUI/edit/test/policies/EditActionPolicySpec.js
Normal file
30
platform/commonUI/edit/test/policies/EditActionPolicySpec.js
Normal file
@ -0,0 +1,30 @@
|
||||
/*global define,describe,it,expect,beforeEach,jasmine*/
|
||||
|
||||
define(
|
||||
["../../src/policies/EditActionPolicy"],
|
||||
function (EditActionPolicy) {
|
||||
"use strict";
|
||||
|
||||
describe("The Edit action policy", function () {
|
||||
it("allows the edit action when there are editable views", function () {
|
||||
|
||||
});
|
||||
|
||||
it("allows the edit properties action when there are no editable views", function () {
|
||||
|
||||
});
|
||||
|
||||
it("disallows the edit action when there are no editable views", function () {
|
||||
|
||||
});
|
||||
|
||||
it("disallows the edit properties action when there are editable views", function () {
|
||||
|
||||
});
|
||||
|
||||
it("allows the edit properties outside of the 'view-control' category", function () {
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
);
|
@ -0,0 +1,20 @@
|
||||
/*global define,describe,it,expect,beforeEach,jasmine*/
|
||||
|
||||
define(
|
||||
["../../src/policies/EditableViewPolicy"],
|
||||
function (EditableViewPolicy) {
|
||||
"use strict";
|
||||
|
||||
describe("The editable view policy", function () {
|
||||
it("disallows views in edit mode that are flagged as non-editable", function () {
|
||||
|
||||
});
|
||||
it("allows any view outside of edit mode", function () {
|
||||
|
||||
});
|
||||
it("treats views with no defined 'editable' property as editable", function () {
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
);
|
@ -17,6 +17,8 @@
|
||||
"objects/EditableDomainObject",
|
||||
"objects/EditableDomainObjectCache",
|
||||
"objects/EditableModelCache",
|
||||
"policies/EditableViewPolicy",
|
||||
"policies/EditActionPolicy",
|
||||
"representers/EditRepresenter",
|
||||
"representers/EditToolbar",
|
||||
"representers/EditToolbarRepresenter",
|
||||
|
Loading…
Reference in New Issue
Block a user