1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | interface MochaPhantomJsWindowOptions extends Window {
|
7 | env: any;
|
8 | failures: number;
|
9 | ended: boolean;
|
10 | started: boolean;
|
11 | run(): void;
|
12 | }
|
13 |
|
14 | interface Window {
|
15 | mochaPhantomJS(): MochaPhantomJsWindowOptions;
|
16 | }
|
17 |
|
18 | interface MochaPhantomJSOptions {
|
19 | headers?: any;
|
20 | cookies?: any[] | undefined;
|
21 | viewportSize?: number | undefined;
|
22 | timeout?: number | undefined;
|
23 | file?: string | undefined;
|
24 | }
|
25 |
|
26 | interface MochaPhantomJS {
|
27 | url: string;
|
28 | columns: number;
|
29 | mochaStartWait: number;
|
30 | startTime: Date;
|
31 | output: any;
|
32 |
|
33 | run(): void;
|
34 | customizeMocha(options: MochaPhantomJSOptions): void;
|
35 | }
|
36 |
|
37 | declare var mochaPhantomJS: MochaPhantomJS;
|