forked from webex/webex-js-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
browsers-ng.js
74 lines (67 loc) · 1.57 KB
/
browsers-ng.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
'use strict';
/* eslint camelcase: [0] */
var browsers = {
local: {
Chrome: {}
},
sauce: {
// Reminder: the first item in this object is used by pipeline builds
sl_chrome_latest_osx11: {
base: 'SauceLabs',
platform: 'OS X 10.11',
browserName: 'chrome',
version: 'latest'
},
sl_chrome_latest_win7: {
base: 'SauceLabs',
platform: 'Windows 7',
browserName: 'chrome',
version: 'latest'
},
sl_firefox_latest_linux: {
base: 'SauceLabs',
platform: 'Linux',
browserName: 'firefox',
version: 'latest'
},
sl_firefox_latest_osx11: {
base: 'SauceLabs',
platform: 'OS X 10.11',
browserName: 'firefox',
version: 'latest'
},
sl_firefox_latest_win7: {
base: 'SauceLabs',
platform: 'Windows 7',
browserName: 'firefox',
version: 'latest'
},
// Safari has serious issues with sauce labs
// IE 10 fails because too many libraries use const
sl_ie_11_win7: {
base: 'SauceLabs',
platform: 'Windows 7',
browserName: 'internet explorer',
version: '11'
}
// TODO add edge
}
};
if (process.env.BROWSER) {
browsers.local = {};
browsers.local[process.env.BROWSER] = {};
}
try {
browsers = require('./packages/' + process.env.PACKAGE + '/browsers.js')(browsers);
}
catch (error) {
// ignore
}
if (process.env.PIPELINE) {
var keys = Object.keys(browsers.sauce);
var key = keys[0];
var sauce = browsers.sauce;
browsers.sauce = {};
browsers.sauce[key] = sauce[key];
}
module.exports = browsers;