main-test.js revision 1d407e39b7d8f68d9a2b1e178f35fab037d9835a
1466N/A/**
551N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
551N/A *
919N/A * Copyright (c) 2015 ForgeRock AS. All Rights Reserved
919N/A *
919N/A * The contents of this file are subject to the terms
919N/A * of the Common Development and Distribution License
919N/A * (the License). You may not use this file except in
919N/A * compliance with the License.
919N/A *
919N/A * You can obtain a copy of the License at
919N/A * http://forgerock.org/license/CDDLv1.0.html
919N/A * See the License for the specific language governing
919N/A * permission and limitations under the License.
919N/A *
919N/A * When distributing Covered Code, include this CDDL
919N/A * Header Notice in each file and include the License file
919N/A * at http://forgerock.org/license/CDDLv1.0.html
919N/A * If applicable, add the following below the CDDL Header,
919N/A * with the fields enclosed by brackets [] replaced by
551N/A * your own identifying information:
551N/A * "Portions Copyrighted [year] [name of copyright owner]"
551N/A */
551N/A
551N/A/*global $, require, QUnit */
551N/A
551N/Arequire.config({
551N/A baseUrl: '../www',
551N/A paths: {
551N/A jquery: "libs/jquery-2.1.1-min",
551N/A underscore: "libs/lodash-2.4.1-min",
1466N/A sinon: "../test/libs/sinon-1.10.3",
1466N/A text: "../test/libs/text"
1466N/A },
551N/A shim: {
551N/A underscore: {
551N/A exports: "_"
575N/A },
575N/A sinon: {
551N/A exports: "sinon"
551N/A }
551N/A }
551N/A});
1466N/A
551N/Arequire([
851N/A "underscore",
963N/A "sinon",
963N/A "../test/mocks/editor",
1466N/A "../test/mocks/global"
963N/A], function (_, sinon, editor, global) {
var server = sinon.fakeServer.create();
server.autoRespond = true;
editor(server);
global(server);
require(['../www/main', '../test/run'], function (appMain, run) {
run(server);
});
});