Skip to content

Commit ab38c17

Browse files
authored
Merge pull request #124 from amenadiel/passing_tests
Waits for google to load, so as to pass karma tests
2 parents 13a7cdd + a189618 commit ab38c17

File tree

3 files changed

+137
-105
lines changed

3 files changed

+137
-105
lines changed

karma.conf.js

+28-19
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
1-
module.exports = function (config) {
2-
config.set({
3-
basePath: '',
4-
port: 9877,
5-
colors: true,
6-
logLevel: 'INFO',
7-
autoWatch: false,
8-
browsers: ['PhantomJS'],
9-
singleRun: true,
10-
frameworks: ['jasmine'],
11-
reporters: ['mocha'],
12-
files: [
13-
'https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry',
14-
'wicket.js',
15-
'wicket-gmap3.js',
16-
'tests/wicket-gmap3-spec.js'
17-
]
18-
});
19-
};
1+
module.exports = function(config) {
2+
config.set({
3+
basePath: '',
4+
port: 9877,
5+
colors: true,
6+
logLevel: 'INFO',
7+
autoWatch: false,
8+
browsers: ['PhantomJS'],
9+
phantomjsLauncher: {
10+
// Have phantomjs exit if a ResourceError is encountered (useful if karma exits without killing phantom)
11+
exitOnResourceError: false,
12+
flags: [
13+
'--web-security=false',
14+
'--load-images=false',
15+
'--ignore-ssl-errors=true'
16+
]
17+
},
18+
singleRun: true,
19+
frameworks: ['jasmine'],
20+
reporters: ['mocha'],
21+
files: [
22+
'https://maps.googleapis.com/maps/api/js?v=3.31&libraries=geometry',
23+
'wicket.js',
24+
'wicket-gmap3.js',
25+
'tests/wicket-gmap3-spec.js'
26+
]
27+
});
28+
};

0 commit comments

Comments
 (0)