Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CLIMATE-413 Extend browser support for ocw-ui/frontend/config/karma.c…
…onf.js
  • Loading branch information
Michael Anderson authored and Michael Anderson committed Jan 7, 2018
1 parent 4cf79f3 commit 5a632c86e4e10e545940ec4ad420ec232f22a413
Showing 2 changed files with 51 additions and 14 deletions.
@@ -2,12 +2,12 @@
"name": "ocwui",
"version": "1.2.0",
"description": "A tool for the evaluation and analysis of climate models.",
"repository": {
"type" : "git",
"url" : "https://git-wip-us.apache.org/repos/asf/climate.git"
"repository": {
"type": "git",
"url": "https://git-wip-us.apache.org/repos/asf/climate.git"
},
"license": "Apache-2.0",
"readme":"README.md",
"readme": "README.md",
"dependencies": {},
"devDependencies": {
"bower": "^1.3.9",
@@ -23,7 +23,7 @@
"grunt-contrib-copy": "^0.5.0",
"grunt-contrib-cssmin": "^0.9.0",
"grunt-contrib-htmlmin": "^0.3.0",
"grunt-contrib-imagemin": "^0.7.0",
"grunt-contrib-imagemin": "^2.0.1",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-uglify": "^0.4.0",
"grunt-contrib-watch": "^0.6.1",
@@ -36,12 +36,18 @@
"grunt-usemin": "^2.1.1",
"grunt-wiredep": "^1.8.0",
"jshint-stylish": "^0.2.0",
"karma": "^0.12.17",
"karma": "^2.0.0",
"karma-chrome-launcher": "^2.2.0",
"karma-detect-browsers": "^2.2.6",
"karma-firefox-launcher": "^1.1.0",
"karma-ie-launcher": "^1.0.0",
"karma-jasmine": "^0.1.5",
"karma-phantomjs-launcher": "^0.1.4",
"karma-phantomjs-launcher": "^1.0.4",
"karma-safari-launcher": "^1.0.0",
"load-grunt-tasks": "^0.4.0",
"time-grunt": "^0.3.1",
"yo": "^1.2.1"
"yo": "^1.2.1",
"serve-static": "^1.13.1"
},
"engines": {
"node": ">=0.10.0"
@@ -46,23 +46,54 @@ module.exports = function(config) {
// web server port
port: 8080,


// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: [
'PhantomJS',
//'Chrome'
],
// Ok to leave this empty as karma-detect-browsers will figure this out based on what is installed.
// Either set enabled to false for karma-detect-browsers and fill in a specific list or update
// the logic in the karma-detect-browsers config to remove those you don't want to test.
browsers: [ ],

frameworks: ['jasmine', 'detectBrowsers'],

detectBrowsers: {
// enable/disable, default is true
enabled: true,

// enable/disable phantomjs support, default is true
usePhantomJS: true,

// post processing of browsers list
// here you can edit the list of browsers used by karma
postDetection: function(availableBrowser) {

var result = availableBrowser;

//Remove PhantomJS if another browser has been detected
//if (availableBrowser.length > 1 && availableBrowser.indexOf('PhantomJS')>-1) {
// var i = result.indexOf('PhantomJS');

// if (i !== -1) {
// result.splice(i, 1);
// }
//}

return result;
}
},

// Which plugins to enable
plugins: [
'karma-phantomjs-launcher',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-safari-launcher',
'karma-ie-launcher',
'karma-detect-browsers',
'karma-jasmine'
],

0 comments on commit 5a632c8

Please sign in to comment.