Skip to content

Commit

Permalink
Switch from PhantomJS to ChromeHeadless (#14)
Browse files Browse the repository at this point in the history
* updated package versions to ~latest
* switch from phantomJS to ChromeHeadless via pupeteer
  • Loading branch information
iamcal committed May 7, 2021
1 parent 93dff40 commit 3aae778
Show file tree
Hide file tree
Showing 7 changed files with 1,177 additions and 3,012 deletions.
6 changes: 4 additions & 2 deletions karma-cover.conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
process.env.CHROME_BIN = require('puppeteer').executablePath();

module.exports = function(config) {
config.set({
basePath: '',
Expand All @@ -21,11 +23,11 @@ module.exports = function(config) {
colors: true,
logLevel: config.LOG_DISABLE,
autoWatch: false,
browsers: ['PhantomJS'],
browsers: ['ChromeHeadless'],
singleRun: false,
plugins: [
'karma-jasmine',
'karma-phantomjs-launcher',
'karma-chrome-launcher',
'karma-coverage'
]
})
Expand Down
5 changes: 3 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
process.env.CHROME_BIN = require('puppeteer').executablePath();

module.exports = function(config) {
config.set({
Expand All @@ -15,11 +16,11 @@ module.exports = function(config) {
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['PhantomJS'],
browsers: ['ChromeHeadless'],
singleRun: false,
plugins: [
'karma-jasmine',
'karma-phantomjs-launcher',
'karma-chrome-launcher',
'karma-story-reporter',
]
})
Expand Down
3 changes: 1 addition & 2 deletions lib/lib_timezones.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,7 @@ function timezones_guess(){
"Asia\/Singapore": "Asia\/Kuala_Lumpur",
"Australia\/Sydney": "Australia\/Canberra",
"Pacific\/Port_Moresby": "Pacific\/Guam",
"Asia\/Kamchatka": "Asia\/Anadyr",
"WET": "Europe\/Amsterdam"
"Asia\/Kamchatka": "Asia\/Anadyr"
}
var _auto_alts = {
"Africa\/Abidjan": "Africa\/Monrovia",
Expand Down
2 changes: 1 addition & 1 deletion lib/lib_timezones.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion lib/lib_timezones.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ function timezones_filter($zone, $default = null){
'Australia/Sydney' => 'Australia/Canberra',
'Pacific/Port_Moresby' => 'Pacific/Guam',
'Asia/Kamchatka' => 'Asia/Anadyr',
'WET' => 'Europe/Amsterdam',
);
$auto_map = array(
'Africa/Abidjan' => 'Africa/Monrovia',
Expand Down

0 comments on commit 3aae778

Please sign in to comment.