module.exports = function(config) {
  "use strict";

  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",
      platform: "Windows XP",
      version: "3.6"
    },
    opera11: {
      base: "SauceLabs",
      browserName: "opera",
      platform: "Windows XP",
      version: "11"
    },
    safari5: {
      base: "SauceLabs",
      browserName: "safari",
      platform: "OS X 10.6",
      version: "5"
    }
  };

  config.set({
    basePath: "",
    frameworks: ["jasmine"],
    captureTimeout: 120000,
    browserNoActivityTimeout: 60000,
    files: [
      "../src/data.js",
      "../src/mode.js",
      "../src/utils.js",
      "../src/support.js",
      "../src/elements.js",
      "../src/polyfill.js",
      "../src/events.js",
      "../src/main.js",
      "../src/module.js",
      "../test/utils/*.js",
      "../test/**/*_spec.js"
    ],
    preprocessors: {
      "../src/*.js": ["wrap"]
    },
    wrapPreprocessor: {
      template: "(function(global) {\n\n\"use strict\";\n\n" +
                "global.placekeeper = global.placekeeper || {};\n\n" +
                "<%= contents %>\n\n}(window))"
    },
    sauceLabs: {
      testName: "HTML5 placeholder polyfill"
    },
    customLaunchers: customLaunchers,
    browsers: Object.keys(customLaunchers),
    reporters: ["dots", "saucelabs"],
    singleRun: true
  });
};

module.exports = function(config) {
  "use strict";

  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",
      platform: "Windows XP",
      version: "3.6"
    },
    opera11: {
      base: "SauceLabs",
      browserName: "opera",
      platform: "Windows XP",
      version: "11"
    },
    safari5: {
      base: "SauceLabs",
      browserName: "safari",
      platform: "OS X 10.6",
      version: "5"
    }
  };

  config.set({
    basePath: "",
    frameworks: ["jasmine"],
    captureTimeout: 120000,
    browserNoActivityTimeout: 60000,
    files: [
      "../src/data.js",
      "../src/mode.js",
      "../src/utils.js",
      "../src/support.js",
      "../src/elements.js",
      "../src/polyfill.js",
      "../src/events.js",
      "../src/main.js",
      "../src/module.js",
      "../test/utils/*.js",
      "../test/**/*.spec.js"
    ],
    preprocessors: {
      "../src/*.js": ["wrap"]
    },
    wrapPreprocessor: {
      template: "(function(global) {\n\n\"use strict\";\n\n" +
                "global.placekeeper = global.placekeeper || {};\n\n" +
                "<%= contents %>\n\n}(window))"
    },
    sauceLabs: {
      testName: "HTML5 placeholder polyfill"
    },
    customLaunchers: customLaunchers,
    browsers: Object.keys(customLaunchers),
    reporters: ["dots", "saucelabs"],
    singleRun: true
  });
};

Fix sauce spec path