/**
 * Create a browser scenario test server context.
 * @function serverside.context.newBrowserScenarioTestContext
 * @param {object} [context] - Predefined context object.
 * @returns {object} - Defined server context object.
 * @author Taka Okunishi
 *
 */

var path = require('path'),
    object = require('../../lib/object'),
    deepCopy = object.deepCopy,
    newProductionContext = require('./new_production_context');


exports = module.exports = function (context) {
    if (!context) context = {};

    context = newProductionContext(context);

    deepCopy(exports._constatns, context);

    return context;
};

exports._constatns = require('../constants/browser-scenario-test-constants');