Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge branch 'CLIMATE-413' of https://github.com/MichaelArthurAnderso…
Browse files Browse the repository at this point in the history
  • Loading branch information
lewismc committed Jan 17, 2018
2 parents 69bbe27 + 5a632c8 commit 59dbe80
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 14 deletions.
22 changes: 14 additions & 8 deletions ocw-ui/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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"
Expand Down
43 changes: 37 additions & 6 deletions ocw-ui/frontend/test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
],

Expand Down

0 comments on commit 59dbe80

Please sign in to comment.