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
34
ash / webui / media_app_ui / test / test_api.d.ts [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview
* TypeScript definitions for symbols defined in test_api.js that are still used
* by test files converted from the old js2gtest framework. This only lists
* methods still used by media_app, until they are converted to modern
* equivalents.
*/
declare function assertEquals(
expected: any, actual: any, message?: string): void;
declare function assertGE(lhs: any, rhs: any): void;
declare function assertNotEquals(lhs: any, rhs: any): void;
declare function assertDeepEquals(lhs: any, rhs: any): void;
interface ChaiJsAsserts {
isTrue(value: any): void;
isDefined(value: any): void;
equal(lhs: any, rhs: any, message?: string): void;
match(string: string, regex: RegExp, message?: string): void;
}
interface ChaiJs {
assert: ChaiJsAsserts;
expect: ChaiJsAsserts;
}
declare const chai: ChaiJs;
// Things that become available when dom_testing_helpers.js is injected.
declare function waitForNode(query: string, path?: string[]): Promise<Element>;