'use strict';

module.exports = function (config) {

    config.set({

        basePath: '',

        frameworks: ['mocha', 'sinon-chai', 'browserify'],

        files: [
            'node_modules/document-register-element/build/document-register-element.js',
            //'node_modules/webcomponents.js/webcomponents-lite.min.js',
            'es6/test/**/*.spec.js'
        ],

        exclude: [],

        preprocessors: {
            'es6/**/*.js': ['browserify']
        },

        browserify: {
            transform: ['babelify']
        },

        reporters: ['progress'],

        coverageReporter: {
            dir: './.tmp/cov',
            reporters: [{
                type: 'lcov',
                subdir: 'lcov'
            }, {
                type: 'html',
                subdir: 'html'
            }]
        },

        port: 9877,

        colors: true,

        // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO ||
        logLevel: config.LOG_INFO,

        autoWatch: false,

        //browsers: ['Chrome'],
        //browsers: ['IE', 'PhantomJS'],
        //browsers: ['IE'],
        //browsers: ['Firefox', 'PhantomJS'],
        //browsers: ['Firefox'],
        browsers: ['PhantomJS'],

        singleRun: true,

        client: {
            mocha: {
                reporter: 'html'
            }
        }

    });
};

@@ -1070,16 +1070,29 @@
 s: %5B
+'PhantomJS', 
 'Chrome'
 %5D,%0A 
@@ -1087,16 +1087,22 @@
 'Chrome'
+, 'IE'
 %5D,%0A     
@@ -1122,14 +1122,8 @@
 : %5B'
-IE', '
 Phan
@@ -1119,32 +1119,115 @@
 ers: %5B'PhantomJS
+', 'Chrome', 'Firefox'%5D,%0A        //browsers: %5B'PhantomJS', 'Chrome', 'Firefox', 'IE
 '%5D,%0A        //br
@@ -1235,24 +1235,37 @@
 wsers: %5B'IE'
+, 'PhantomJS'
 %5D,%0A        /
@@ -1277,23 +1277,22 @@
 sers: %5B'
-Firefox
+Chrome
 ', 'Phan
@@ -1322,32 +1322,45 @@
 sers: %5B'Firefox'
+, 'PhantomJS'
 %5D,%0A        brows

add karma browsers alternative