// Karma configuration
// Generated on Fri Jul 07 2017 16:49:19 GMT+0200 (CEST)

const customLaunchers = {
    sl_chrome: {
        base: 'SauceLabs',
        browserName: 'chrome',
        platform: 'Windows 8',
        version: '59.0'
    },
};

module.exports = function (config) {
    config.set({

        // base path that will be used to resolve all patterns (eg. files, exclude)
        basePath: '',


        // frameworks to use
        // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
        frameworks: ['qunit'],


        // list of files / patterns to load in the browser
        files: [
            'tests/dist/complete-library-build.js',
            'tests/dist/all-tests.js'
        ],


        // list of files to exclude
        exclude: [],


        // preprocess matching files before serving them to the browser
        // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
        preprocessors: {},


        // test results reporter to use
        // possible values: 'dots', 'progress'
        // available reporters: https://npmjs.org/browse/keyword/karma-reporter
        //reporters: ['progress'],
        reporters: ['dots', 'saucelabs'],


        // web server port
        port: 9876,


        // enable / disable colors in the output (reporters and logs)
        colors: true,


        // level of logging
        // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
        logLevel: config.LOG_INFO,


        // enable / disable watching file and executing tests whenever any file changes
        autoWatch: true,


        // start these browsers
        // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
        // browsers: ['Chrome'],
        browsers: Object.keys(customLaunchers),


        // Continuous Integration mode
        // if true, Karma captures browsers, runs the tests and exits
        // singleRun: false,
        singleRun: true,

        // Concurrency level
        // how many browser should be started simultaneous
        concurrency: Infinity,

        sauceLabs: {
            testName: 'mojave',
            recordScreenshots: true,
        },
        customLaunchers: customLaunchers,
    });
};

@@ -108,10 +108,11 @@
     
-sl
+win
 _chr
@@ -207,16 +207,16 @@
 ows 8',%0A
-
         
@@ -238,16 +238,1541 @@
 %0A    %7D,%0A
+    win_firefox: %7B%0A        base: 'SauceLabs',%0A        browserName: 'firefox',%0A        platform: 'Windows 10',%0A        version: '54.0'%0A    %7D,%0A    win_edge: %7B%0A        base: 'SauceLabs',%0A        browserName: 'MicrosoftEdge',%0A        platform: 'Windows 10',%0A        version: '14.14393'%0A    %7D,%0A    win_ie11: %7B%0A        base: 'SauceLabs',%0A        browserName: 'internet explorer',%0A        platform: 'Windows 10',%0A        version: '11.103'%0A    %7D,%0A    win_ie10: %7B%0A        base: 'SauceLabs',%0A        browserName: 'internet explorer',%0A        platform: 'Windows 8',%0A        version: '10.0'%0A    %7D,%0A    mac_edge: %7B%0A        base: 'SauceLabs',%0A        browserName: 'chrome',%0A        platform: 'macOS 10.12',%0A        version: '59.0'%0A    %7D,%0A    mac_firefox: %7B%0A        base: 'SauceLabs',%0A        browserName: 'firefox',%0A        platform: 'macOS 10.12',%0A        version: '54.0'%0A    %7D,%0A    mac_safari: %7B%0A        base: 'SauceLabs',%0A        browserName: 'safari',%0A        platform: 'macOS 10.12',%0A        version: '10.0'%0A    %7D,%0A    ios_safari: %7B%0A        base: 'SauceLabs',%0A        browserName: 'Safari',%0A        appiumVersion: '1.6.5',%0A        deviceName: 'iPhone Simulator',%0A        deviceOrientation: 'portrait',%0A        platformVersion: '10.3',%0A        platformName: 'iOS',%0A    %7D,%0A    android_chrome: %7B%0A        base: 'SauceLabs',%0A        browserName: 'Chrome',%0A        appiumVersion: '1.6.5',%0A        deviceName: 'Android Emulator',%0A        deviceOrientation: 'portrait',%0A        platformVersion: '6.0',%0A        platformName: 'Android',%0A    %7D,%0A
 %7D;%0A%0Amodu

Update the supported browser matrix