Skip to content

Commit 8b398a1

Browse files
authored
High contrast mode (#26)
* 27168 Update Histogram to support high contrast mode * 27169 Cover changes by UTs [Update Histogram to support high contrast mode]
1 parent c5c16ff commit 8b398a1

19 files changed

+3415
-2958
lines changed

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ sudo: required
44
dist: trusty
55
language: node_js
66
node_js:
7-
- "7"
8-
before_install:
9-
- sudo apt-get install -y chromium-browser
10-
- export CHROME_BIN=chromium-browser
11-
- export DISPLAY=:99.0
12-
- sh -e /etc/init.d/xvfb start
7+
- "10"
138
install:
149
- npm install
1510
script:

.vscode/launch.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"fileMatch": [
2020
"/pbiviz.json"
2121
],
22-
"url": "./.api/v1.11.0/schema.pbiviz.json"
22+
"url": "./.api/v1.13.0/schema.pbiviz.json"
2323
},
2424
{
2525
"fileMatch": [
2626
"/capabilities.json"
2727
],
28-
"url": "./.api/v1.11.0/schema.capabilities.json"
28+
"url": "./.api/v1.13.0/schema.capabilities.json"
2929
}
3030
]
3131
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.4.0
2+
* High contrast mode
3+
* API 1.13.0
4+
15
## 1.3.1
26
* Fixes infinity loops that crashed browser and Power BI Desktop if there's just one data point in a data-set
37

karma.conf.js

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,17 @@
2626

2727
'use strict';
2828

29-
const recursivePathToTests = 'test/**/*.ts'
30-
, srcRecursivePath = '.tmp/drop/visual.js'
31-
, srcCssRecursivePath = '.tmp/drop/visual.css'
32-
, srcOriginalRecursivePath = 'src/**/*.ts'
33-
, coverageFolder = 'coverage';
29+
const recursivePathToTests = 'test/**/*.ts';
30+
const srcRecursivePath = '.tmp/drop/visual.js';
31+
const srcCssRecursivePath = '.tmp/drop/visual.css';
32+
const srcOriginalRecursivePath = 'src/**/*.ts';
33+
const coverageFolder = 'coverage';
3434

35-
module.exports = (config) => {
36-
const browsers = [];
37-
38-
if (process.env.TRAVIS) {
39-
browsers.push('ChromeTravisCI');
40-
} else {
41-
browsers.push('Chrome');
42-
}
35+
process.env.CHROME_BIN = require('puppeteer').executablePath();
4336

37+
module.exports = (config) => {
4438
config.set({
45-
browsers,
46-
customLaunchers: {
47-
ChromeTravisCI: {
48-
base: 'Chrome',
49-
flags: ['--no-sandbox']
50-
}
51-
},
39+
browsers: ['ChromeHeadless'],
5240
colors: true,
5341
frameworks: ['jasmine'],
5442
reporters: [
@@ -89,9 +77,12 @@ module.exports = (config) => {
8977
},
9078
coverageReporter: {
9179
dir: coverageFolder,
92-
reporters: [
93-
{ type: 'html' },
94-
{ type: 'lcov' }
80+
reporters: [{
81+
type: 'html'
82+
},
83+
{
84+
type: 'lcov'
85+
}
9586
]
9687
},
9788
remapIstanbulReporter: {
@@ -102,4 +93,4 @@ module.exports = (config) => {
10293
}
10394
}
10495
});
105-
};
96+
};

0 commit comments

Comments
 (0)