mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(snapshot): add platform_index / platform_count
This commit is contained in:
@@ -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 %>',
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user