-
Notifications
You must be signed in to change notification settings - Fork 800
/
local.conf.js
48 lines (44 loc) · 1.12 KB
/
local.conf.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
var testUrl = '/test/page/test.html',
hasIE = /^win/.test(process.platform),
viewports = [[1280, 1024], [640, 480], [320, 640]];
var capabilities = [
{
browserName: 'chrome'
},
{
browserName: 'firefox'
}
];
if (hasIE) {
capabilities = capabilities.concat([
{
browserName: 'internet explorer',
urls: [testUrl, testUrl + '?ie=9', testUrl + '?ie=10']
},
{
browserName: 'internet explorer',
urls: [testUrl + '?ie=8'],
viewports: [[1280, 1024]]
}
]);
}
for (var i = 0; i < capabilities.length; i += 1) {
var capability = capabilities[i];
capability['urls'] = capability['urls'] || [testUrl];
capability['viewports'] = capability['viewports'] || viewports;
}
exports.config = {
capabilities: capabilities,
specs: [
'./test/specs/webdriver.spec.js'
],
logLevel: 'silent',
coloredLogs: true,
waitforTimeout: 99999999,
framework: 'jasmine',
reporter: 'spec',
pauseOnFail: true,
jasmineNodeOpts: {
defaultTimeoutInterval: 99999999
}
};