Home
last modified time | relevance | path

Searched refs:assertClose (Results 1 – 9 of 9) sorted by relevance

/test/xts/acts/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/
DassertClose.test.js21 expect(a).assertClose(99, b)
26 expect(a).assertClose(1, b)
31 expect(a).assertClose(null, b)
34 expect(null).assertClose(null, 0)
/test/testfwk/arkxtest/jsunit/src/module/assert/
DassertClose.js16 function assertClose(actualValue, expected) { function
41 export default assertClose;
DExpectExtend.js17 import assertClose from './assertClose';
46 this.matchers.assertClose = assertClose;
/test/xts/acts/multimedia/media/media_js_standard/httpPlayer/src/main/js/test/
DHttpPlayerFuncPromiseTest.test.js97 expect(newTime - startTime).assertClose(0.75 * 1000, DELTA_TIME);
100 expect(newTime - startTime).assertClose(1000, DELTA_TIME);
103 expect(newTime - startTime).assertClose(1.25 * 1000, DELTA_TIME);
106 expect(newTime - startTime).assertClose(1.75 * 1000, DELTA_TIME);
109 expect(newTime - startTime).assertClose(2 * 1000, DELTA_TIME);
161 expect(endTime - startTime).assertClose(PLAY_TIME, DELTA_TIME);
212 expect(endTime - startTime).assertClose(PLAY_TIME, DELTA_TIME);
268 expect(endTime - startTime).assertClose(PLAY_TIME, DELTA_TIME);
282 expect(endTime - startTime).assertClose(PLAY_TIME, DELTA_TIME);
333 expect(endTime - startTime).assertClose(PLAY_TIME, DELTA_TIME);
[all …]
/test/testfwk/arkxtest/jsunit/
Dindex.d.ts65 assertClose(expectValue: number, precision: number): void
Dindex.ets58 assertClose(expectValue: number, precision: number): void
/test/xts/acts/multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/
DVideoPlayerHLSBitrateTest.test.js109 expect(endTime - startTime).assertClose(playTime, 1000);
/test/testfwk/arkxtest/
DREADME_en.md83 | 1 | assertClose | Checks whether the proximity between the actual value and the expected …
101 describe('assertClose', function () {
105 expect(a).assertClose(99, b)
110 expect(a).assertClose(1, b)
115 expect(a).assertClose(null, b)
118 expect(null).assertClose(null, 0)
DREADME_zh.md142 | 1 | assertClose | 检验actualvalue和expectvalue(0)的接近程度是否是expectValue(1)。 |
175 expect(a).assertClose(99, b)