test(snapshot): add platform_index / platform_count

This commit is contained in:
Adam Bradley
2014-06-03 23:33:30 -05:00
parent d1c46ebcdd
commit ac302b28a1
2 changed files with 8 additions and 0 deletions

View File

@@ -80,6 +80,8 @@ module.exports = function(gulp, argv) {
platform: 'linux',
params: {
platform_id: 'chrome_local_test',
platform_index: 0,
platform_count: 1,
width: 400,
height: 800,
test_id: uuid.v4()
@@ -90,6 +92,8 @@ module.exports = function(gulp, argv) {
'--browser <%= browser %>',
'--platform <%= platform %>',
'--params.platform_id=<%= params.platform_id %>',
'--params.platform_index=<%= params.platform_index %>',
'--params.platform_count=<%= params.platform_count %>',
'--params.width=<%= params.width %>',
'--params.height=<%= params.height %>',
'--params.test_id=<%= params.test_id %>',

View File

@@ -16,6 +16,8 @@ var IonicSnapshot = function(options) {
self.appId = options.appId || 'test_app';
self.testId = browser.params.test_id || 'test_id';
self.platformId = browser.params.platform_id;
self.platformIndex = browser.params.platform_index;
self.platformCount = browser.params.platform_count;
self.sleepBetweenSpecs = options.sleepBetweenSpecs || 450;
self.width = browser.params.width || -1;
self.height = browser.params.height || -1;
@@ -35,6 +37,8 @@ var IonicSnapshot = function(options) {
app_id: self.appId,
test_id: self.testId,
platform_id: self.platformId,
platform_index: self.platformIndex,
platform_count: self.platformCount,
width: self.width,
height: self.height,
browser: capabilities.get('browserName'),