90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * The contents of this file are subject to the terms of the Common Development and
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * Distribution License (the License). You may not use this file except in compliance with the
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * specific language governing permission and limitations under the License.
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * When distributing Covered Software, include this CDDL Header Notice in each file and include
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * Header, with the fields enclosed by brackets [] replaced by your own identifying
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * information: "Portions copyright [year] [name of copyright owner]".
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * Copyright 2014-2015 ForgeRock AS.
d1e25a21be0403ed5f4ea45f589a3956592befd9Jake Feasel/*global define, QUnit, localStorage, sessionStorage */
0e2f85c75c270eec9d148bab17911441d8843a2aJake Feasel "underscore",
c54f5c9f018cfaf6792ae351d3f0be15efdd175eJake Feasel "org/forgerock/commons/ui/common/util/Constants",
c54f5c9f018cfaf6792ae351d3f0be15efdd175eJake Feasel "org/forgerock/commons/ui/common/main/EventManager",
0e2f85c75c270eec9d148bab17911441d8843a2aJake Feasel], function ($, _, constants, eventManager, sinon, commonTests, specificTests) {
01a229e011c0d84be34e967cf517d35a476c541aJake Feasel func(); // run the function immediately rather than delayed.
01a229e011c0d84be34e967cf517d35a476c541aJake Feasel return function (server) {
d1e25a21be0403ed5f4ea45f589a3956592befd9Jake Feasel eventManager.registerListener(constants.EVENT_APP_INITIALIZED, function () {
0e2f85c75c270eec9d148bab17911441d8843a2aJake Feasel console.log("Starting " + testDetails.module + ":" + testDetails.name + "("+ testDetails.testNumber +")");
0e2f85c75c270eec9d148bab17911441d8843a2aJake Feasel // every state needs to be reset at the starat of each test
0e2f85c75c270eec9d148bab17911441d8843a2aJake Feasel var vm = require("org/forgerock/commons/ui/common/main/ViewManager"),
08b5793948544288f007d40b3391a6f69e2aeb07huck.elliott configDelegate = require("org/forgerock/openidm/ui/common/delegates/ConfigDelegate");
01a229e011c0d84be34e967cf517d35a476c541aJake Feasel require("org/forgerock/commons/ui/common/main/Configuration").baseTemplate = null;
0e2f85c75c270eec9d148bab17911441d8843a2aJake Feasel // various widgets which get added outside of the fixture and need to be cleaned up
0e2f85c75c270eec9d148bab17911441d8843a2aJake Feasel //$(".modal").remove();
0e2f85c75c270eec9d148bab17911441d8843a2aJake Feasel _.delay(function () {