mirror of
https://github.com/nasa/openmct.git
synced 2025-05-29 13:44:21 +00:00
[Common UI] Skeleton spec for dialogs
Skeleton specs for bundle platform/commonUI/dialog, responsible for displaying dialog overlays. Part of ongoing transition of common user interface elements for WTD-574.
This commit is contained in:
parent
0faf4c934e
commit
f04e02359a
31
platform/commonUI/dialog/test/DialogServiceSpec.js
Normal file
31
platform/commonUI/dialog/test/DialogServiceSpec.js
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,jasmine*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MCTIncudeSpec. Created by vwoeltje on 11/6/14.
|
||||||
|
*/
|
||||||
|
define(
|
||||||
|
["../src/DialogService"],
|
||||||
|
function (DialogService) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
describe("The dialog service", function () {
|
||||||
|
|
||||||
|
it("adds an overlay when user input is requested", function () {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
it("allows user input to be canceled", function () {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
it("passes back the result of user input when confirmed", function () {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
it("logs a warning when a dialog is already showing", function () {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
);
|
23
platform/commonUI/dialog/test/OverlayServiceSpec.js
Normal file
23
platform/commonUI/dialog/test/OverlayServiceSpec.js
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,jasmine*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MCTIncudeSpec. Created by vwoeltje on 11/6/14.
|
||||||
|
*/
|
||||||
|
define(
|
||||||
|
["../src/OverlayService"],
|
||||||
|
function (OverlayService) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
describe("The dialog service", function () {
|
||||||
|
|
||||||
|
it("prepends an mct-include to create overlays", function () {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
it("removes the prepended element on request", function () {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
);
|
4
platform/commonUI/dialog/test/suite.json
Normal file
4
platform/commonUI/dialog/test/suite.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[
|
||||||
|
"DialogService",
|
||||||
|
"OverlayService"
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user