Skip to content

Commit

Permalink
High contrast mode (#26)
Browse files Browse the repository at this point in the history
* 27168 Update Histogram to support high contrast mode
* 27169 Cover changes by UTs [Update Histogram to support high contrast mode]
  • Loading branch information
ignatvilesov committed Jul 16, 2018
1 parent c5c16ff commit 8b398a1
Show file tree
Hide file tree
Showing 19 changed files with 3,415 additions and 2,958 deletions.
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ sudo: required
dist: trusty
language: node_js
node_js:
- "7"
before_install:
- sudo apt-get install -y chromium-browser
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- "10"
install:
- npm install
script:
Expand Down
13 changes: 0 additions & 13 deletions .vscode/launch.json

This file was deleted.

4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"fileMatch": [
"/pbiviz.json"
],
"url": "./.api/v1.11.0/schema.pbiviz.json"
"url": "./.api/v1.13.0/schema.pbiviz.json"
},
{
"fileMatch": [
"/capabilities.json"
],
"url": "./.api/v1.11.0/schema.capabilities.json"
"url": "./.api/v1.13.0/schema.capabilities.json"
}
]
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.4.0
* High contrast mode
* API 1.13.0

## 1.3.1
* Fixes infinity loops that crashed browser and Power BI Desktop if there's just one data point in a data-set

Expand Down
39 changes: 15 additions & 24 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,17 @@

'use strict';

const recursivePathToTests = 'test/**/*.ts'
, srcRecursivePath = '.tmp/drop/visual.js'
, srcCssRecursivePath = '.tmp/drop/visual.css'
, srcOriginalRecursivePath = 'src/**/*.ts'
, coverageFolder = 'coverage';
const recursivePathToTests = 'test/**/*.ts';
const srcRecursivePath = '.tmp/drop/visual.js';
const srcCssRecursivePath = '.tmp/drop/visual.css';
const srcOriginalRecursivePath = 'src/**/*.ts';
const coverageFolder = 'coverage';

module.exports = (config) => {
const browsers = [];

if (process.env.TRAVIS) {
browsers.push('ChromeTravisCI');
} else {
browsers.push('Chrome');
}
process.env.CHROME_BIN = require('puppeteer').executablePath();

module.exports = (config) => {
config.set({
browsers,
customLaunchers: {
ChromeTravisCI: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
browsers: ['ChromeHeadless'],
colors: true,
frameworks: ['jasmine'],
reporters: [
Expand Down Expand Up @@ -89,9 +77,12 @@ module.exports = (config) => {
},
coverageReporter: {
dir: coverageFolder,
reporters: [
{ type: 'html' },
{ type: 'lcov' }
reporters: [{
type: 'html'
},
{
type: 'lcov'
}
]
},
remapIstanbulReporter: {
Expand All @@ -102,4 +93,4 @@ module.exports = (config) => {
}
}
});
};
};

0 comments on commit 8b398a1

Please sign in to comment.