-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaces.ts
32 lines (28 loc) · 977 Bytes
/
interfaces.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Angular internal, not intended for public API. But will be used by client script right now.
import {PluginConfig} from 'protractor';
// need for interfaces
import 'zone.js';
export interface PendingMacrotask {
source: string;
creationLocation: Error;
runCount?: number;
data?: TaskData;
}
export interface IgnoreTask {
// got from angular/packages/zone.js/lib/zone-spec/fake-async-test.ts:498
source?: 'setTimeout'
| 'setInterval'
| 'setImmediate'
| 'XMLHttpRequest.send'
| 'requestAnimationFrame'
| 'webkitRequestAnimationFrame'
| 'mozRequestAnimationFrame';
creationLocation?: string | RegExp;
// maxTaskWaitTime?: number, // TODO impl
// ignoreTaskFn?: (task: Task) => boolean, // TODO impl
}
export interface SyncOptionsConfig extends PluginConfig {
ignoreTasks: IgnoreTask[];
// maxTasksGlobalWaitTime?: number, // TODO impl
// isStableWrapper?: (this: Testability, isStableOrig: Function) => boolean, // TODO impl
}