"use strict";

module.exports = function(config) {

    var customLaunchers = {
        iOSSafari: {
            base: "SauceLabs",
            browserName: "iphone",
            version: "5.1"
        },
        ie7: {
            base: "SauceLabs",
            browserName: "internet explorer",
            version: "7.0"
        },
        ie8: {
            base: "SauceLabs",
            browserName: "internet explorer",
            version: "8.0"
        },
        ie9: {
            base: "SauceLabs",
            browserName: "internet explorer",
            version: "9.0"
        }
    };

    config.set({
        basePath: "",
        frameworks: ["jasmine"],
        captureTimeout: 120000,
        browserNoActivityTimeout: 60000,
        files: [
            "../src/**/*.js",
            "../test/**/*_spec.js"
        ],
        sauceLabs: {
            testName: "HTML5 placeholder polyfill"
        },
        customLaunchers: customLaunchers,
        browsers: Object.keys(customLaunchers),
        reporters: ["dots", "saucelabs"],
        singleRun: true
    });
};

"use strict";

module.exports = function(config) {

    var customLaunchers = {
        iOSSafari: {
            base: "SauceLabs",
            browserName: "iphone",
            version: "5.1"
        },
        ie7: {
            base: "SauceLabs",
            browserName: "internet explorer",
            version: "7.0"
        },
        ie8: {
            base: "SauceLabs",
            browserName: "internet explorer",
            version: "8.0"
        },
        ie9: {
            base: "SauceLabs",
            browserName: "internet explorer",
            version: "9.0"
        },
        ff3dot6: {
            base: "SauceLabs",
            browserName: "firefox",
            version: "3.6"
        }
    };

    config.set({
        basePath: "",
        frameworks: ["jasmine"],
        captureTimeout: 120000,
        browserNoActivityTimeout: 60000,
        files: [
            "../src/**/*.js",
            "../test/**/*_spec.js"
        ],
        sauceLabs: {
            testName: "HTML5 placeholder polyfill"
        },
        customLaunchers: customLaunchers,
        browsers: Object.keys(customLaunchers),
        reporters: ["dots", "saucelabs"],
        singleRun: true
    });
};

Add Firefox 3.6 to Sauce