@@ -61,6 +61,7 @@ func.defaultConfig = {
61
61
// N.B. this field is filled below
62
62
files : [ ] ,
63
63
64
+ // list of files / pattern to exclude
64
65
exclude : [ ] ,
65
66
66
67
// preprocess matching files before serving them to the browser
@@ -98,7 +99,10 @@ func.defaultConfig = {
98
99
browsers : [ 'Chrome_WindowSized' ] ,
99
100
100
101
// custom browser options
102
+ //
101
103
// window-size values came from observing default size
104
+ //
105
+ // '--ignore-gpu-blacklist' allow to test WebGL on CI (!!!)
102
106
customLaunchers : {
103
107
Chrome_WindowSized : {
104
108
base : 'Chrome' ,
@@ -122,41 +126,34 @@ func.defaultConfig = {
122
126
// to avoid import conflicts due to plotly.js
123
127
// circular dependencies.
124
128
if ( isSingleSuiteRun ) {
125
- func . defaultConfig . files = [
129
+ func . defaultConfig . files . push (
126
130
pathToJQuery ,
127
- pathToMain ,
128
- testFileGlob
129
- ] ;
131
+ pathToMain
132
+ ) ;
130
133
131
134
func . defaultConfig . preprocessors [ pathToMain ] = [ 'browserify' ] ;
132
135
func . defaultConfig . preprocessors [ testFileGlob ] = [ 'browserify' ] ;
133
136
}
134
137
else if ( isRequireJSTest ) {
135
138
func . defaultConfig . files = [
136
139
constants . pathToRequireJS ,
137
- constants . pathToRequireJSFixture ,
138
- testFileGlob
140
+ constants . pathToRequireJSFixture
139
141
] ;
140
142
}
141
143
else if ( isIE9Test ) {
142
144
// load ie9_mock.js before plotly.js+test bundle
143
145
// to catch reference errors that could occur
144
146
// when plotly.js is first loaded.
145
147
146
- func . defaultConfig . files = [
147
- './assets/ie9_mock.js' ,
148
- testFileGlob
149
- ] ;
150
-
148
+ func . defaultConfig . files . push ( './assets/ie9_mock.js' ) ;
151
149
func . defaultConfig . preprocessors [ testFileGlob ] = [ 'browserify' ] ;
152
150
}
153
151
else {
154
- func . defaultConfig . files = [
155
- pathToJQuery ,
156
- testFileGlob
157
- ] ;
158
-
152
+ func . defaultConfig . files . push ( pathToJQuery ) ;
159
153
func . defaultConfig . preprocessors [ testFileGlob ] = [ 'browserify' ] ;
160
154
}
161
155
156
+ // lastly, load test file glob
157
+ func . defaultConfig . files . push ( testFileGlob ) ;
158
+
162
159
module . exports = func ;
0 commit comments