-
Notifications
You must be signed in to change notification settings - Fork 58
/
yts_core.d.ts
33 lines (29 loc) · 979 Bytes
/
yts_core.d.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
33
declare const testVersion: string;
declare const testSuiteDescriptions: {[testType: string]: {name: string;}};
declare const testSuiteVersions:
{[testVersion: string]: {testSuites: string[]}};
declare function setupMsePortability(): void;
declare namespace util {
function MakeCapitalName(name: string): string;
function isCobalt(): boolean;
function supportHdr(): boolean;
function supportWebSpeech(): boolean;
}
declare class TestExecutor {
constructor(testSuite: unknown, testsMask?: string, testSuiteVer?: string);
testView: unknown;
startTest(startIndex: number, numOfTestToRun: number): void;
testList: Array<{prototype: yts.TestDescription}>;
startNextTest(): void;
teardownCurrentTest(isTimeout: boolean, errorMsg?: string): void;
error(msg: unknown, isTimeout: boolean): void;
}
declare namespace yts {
interface TestDescription {
id: string;
name: string;
category: string;
timeout: number;
mandatory: boolean;
}
}