run.js revision 26a6ec53bb06b3fb881e2a0cf5855c300513cad6
0N/A/**
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0N/A *
0N/A * Copyright (c) 2014 ForgeRock AS. All Rights Reserved
0N/A *
0N/A * The contents of this file are subject to the terms
0N/A * of the Common Development and Distribution License
0N/A * (the License). You may not use this file except in
0N/A * compliance with the License.
0N/A *
0N/A * You can obtain a copy of the License at
0N/A * http://forgerock.org/license/CDDLv1.0.html
0N/A * See the License for the specific language governing
0N/A * permission and limitations under the License.
0N/A *
0N/A * When distributing Covered Code, include this CDDL
0N/A * Header Notice in each file and include the License file
0N/A * at http://forgerock.org/license/CDDLv1.0.html
0N/A * If applicable, add the following below the CDDL Header,
0N/A * with the fields enclosed by brackets [] replaced by
0N/A * your own identifying information:
0N/A * "Portions Copyrighted [year] [name of copyright owner]"
0N/A */
0N/A
0N/A/*global $, require, QUnit */
0N/A
0N/Arequire.config({
0N/A paths: {
0N/A sinon: "../test/libs/sinon-1.10.3",
0N/A text: "../test/text"
0N/A },
0N/A shim: {
0N/A sinon: {
0N/A exports: "sinon"
0N/A }
0N/A }
0N/A});
0N/A
0N/Arequire([
0N/A "org/forgerock/commons/ui/common/util/Constants",
0N/A "org/forgerock/commons/ui/common/main/EventManager",
0N/A "org/forgerock/commons/ui/common/main/ViewManager",
0N/A "org/forgerock/commons/ui/common/main/Configuration",
0N/A "sinon",
0N/A "../test/tests/mocks/systemInit",
0N/A "../test/tests/common",
0N/A "../test/tests/specific"
0N/A], function (constants, eventManager, viewManager, conf, sinon, systemInit, commonTests, specificTests) {
0N/A
0N/A var server = sinon.fakeServer.create();
0N/A server.autoRespond = true;
0N/A systemInit(server);
0N/A
0N/A eventManager.registerListener(constants.EVENT_APP_INTIALIZED, function () {
0N/A
0N/A // delayed testing start gives the app time to stablize during startup
0N/A _.delay(function () {
0N/A
0N/A QUnit.start();
0N/A
0N/A commonTests.executeAll(server);
0N/A specificTests.executeAll(server);
0N/A
0N/A }, 100);
0N/A
0N/A });
0N/A
0N/A});