Skip to content

Commit

Permalink
fixed local test config for non-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Dec 25, 2015
1 parent 1195421 commit d67ca25
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions test/conf/local.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var testUrl = '/test/page/test.html',
hasIE = /^win/.test(process.platform),
viewports = [[1280, 1024], [640, 480], [320, 640]];

var capabilities = [
Expand All @@ -7,18 +8,23 @@ var capabilities = [
},
{
browserName: 'firefox'
},
{
browserName: 'internet explorer',
urls: [testUrl, testUrl + '?ie=9', testUrl + '?ie=10'],
},
{
browserName: 'internet explorer',
urls: [testUrl + '?ie=8'],
viewports: [[1280, 1024]]
}
];

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];
Expand Down

0 comments on commit d67ca25

Please sign in to comment.