This repository has been archived by the owner on Sep 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
browsers.js
78 lines (63 loc) · 2.45 KB
/
browsers.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
75
76
77
78
var _ = require('underscore');
var browsers = [];
function addBrowser(browserName, platform, version){
browsers.push({
browserName : browserName,
platform : platform,
version : version
});
}
var defaultFF = [5, 47],
defaultChrome = [26, 51, 'beta'];
addBrowser('internet explorer', 'Windows 10', 11);
addBrowser('MicrosoftEdge', 'Windows 10', '13.10586');
defaultChrome.forEach(addBrowser.bind(this, 'chrome', 'Windows 10'));
_.difference(defaultFF,[47]) //these fail on sauce labs due to sauce labs bugs
.forEach(addBrowser.bind(this, 'firefox', 'Windows 10'));
[8, 9, 10, 11].forEach(addBrowser.bind(this, 'internet explorer', 'Windows 7'));
[11, 12].forEach(addBrowser.bind(this, 'opera', 'Windows 7'));
defaultFF.forEach(addBrowser.bind(this, 'firefox', 'Windows 7'));
addBrowser('internet explorer', 'Windows XP', 8);
[26, 49].forEach(addBrowser.bind(this, 'chrome', 'Windows XP'));
[12].forEach(addBrowser.bind(this, 'opera', 'Windows XP'));
[ 4, 45 ].forEach(addBrowser.bind(this, 'firefox', 'Windows XP'));
[51].forEach(addBrowser.bind(this, 'chrome', 'OS X 10.11'));
defaultFF.forEach(addBrowser.bind(this, 'firefox', 'OS X 10.11'));
addBrowser('safari', 'OS X 10.11', 9);
[51].forEach(addBrowser.bind(this, 'chrome', 'OS X 10.10'));
[32, 44].forEach(addBrowser.bind(this, 'firefox', 'OS X 10.10'));
addBrowser('safari', 'OS X 10.10', 8);
_.difference(defaultChrome,[26])
.forEach(addBrowser.bind(this, 'chrome', 'OS X 10.9'));
defaultFF.forEach(addBrowser.bind(this, 'firefox', 'OS X 10.9'));
addBrowser('safari', 'OS X 10.9', 7);
[27, 49].forEach(addBrowser.bind(this, 'chrome', 'OS X 10.8'));
defaultFF.forEach(addBrowser.bind(this, 'firefox', 'OS X 10.8'));
addBrowser('safari', 'OS X 10.8', 6);
[26, 48].forEach(addBrowser.bind(this, 'chrome', 'Linux'));
[4, 45].forEach(addBrowser.bind(this, 'firefox', 'Linux'));
addBrowser('opera', 'Linux', 12);
['9.4','8.4'].forEach(function(version){
browsers.push({
"appiumVersion": "1.5.3",
"deviceName": "iPhone 6 Simulator",
"deviceOrientation": "portrait",
"platformVersion": version,
"platformName": "iOS",
"browserName": "Safari"
});
});
/*
['5.1','5.0','4.4','4.3','4.2'].forEach(function(version){
browsers.push({
"appiumVersion": "1.5.3",
"deviceName":"Android Emulator",
"deviceType":"phone",
"deviceOrientation": "portrait",
"browserName": "Browser",
"platformVersion": version,
"platformName":"Android"
});
});
*/
module.exports = browsers;