[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:
Victor Woeltjen 2014-11-25 14:44:16 -08:00
parent 0faf4c934e
commit f04e02359a
3 changed files with 58 additions and 0 deletions

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

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

View File

@ -0,0 +1,4 @@
[
"DialogService",
"OverlayService"
]