update wallabyjs with viewport settings on environment (#13520)

This commit is contained in:
Andrew Connell
2016-12-28 16:04:24 -05:00
committed by Andy
parent 6cde81ffcf
commit dea04a3c69
2 changed files with 18 additions and 1 deletions

16
wallabyjs/index.d.ts vendored
View File

@@ -11,7 +11,7 @@ declare module 'wallabyjs' {
*
* @property {IWallabyCompiler=} compilers - File patterns as keys and compiler functions as values.
* @property {boolean=} debug - Flag if debug messages written to Wallaby console (default=false).
* @prooperty {IWallabyEnvironment=} env - Specify a different test runner or change the runner settings.
* @property {IWallabyEnvironment=} env - Specify a different test runner or change the runner settings.
* @property {string[] | IWallabyFilePattern[]} files - Specifies an array of source files or file name patterns to copy
* to the local cache.
* @property {Function=} postprocessor - Function that runs for every batch of file changes after all compilers and preprocessors.
@@ -155,6 +155,7 @@ declare module 'wallabyjs' {
params?: IWallabyEnvironmentParameters;
runner?: string;
type?: string;
viewportSize?: IWallabyEnvironmentViewportSize
}
/**
@@ -172,6 +173,19 @@ declare module 'wallabyjs' {
runner?: string;
}
/**
* Wallaby viewport settings for testing.
*
* @interface IWallabyEnvironmentViewportSize
*
* @property {number=} width - Width in pixels for the viewport size in PhantomJs/Electron.
* @property {number=} height - height in pixels for the viewport size in PhantomJs/Electron.
*/
export interface IWallabyEnvironmentViewportSize {
width?: number;
height?: number;
}
/**
* Wallaby worker configuration.
*

View File

@@ -31,6 +31,9 @@ export class WallabyConfig implements wallabyjs.IWallabyConfig {
params: {
env: 'KEY1=value1;KEY2=value2',
runner: '--arg1;--arg2;'
},
viewportSize: {
width: 800
}
};