Home
last modified time | relevance | path

Searched refs:assertLess (Results 1 – 25 of 59) sorted by relevance

123

/test/testfwk/arkxtest/jsunit/src/module/assert/
DassertLess.js16 function assertLess(actualValue, expected) { function
23 export default assertLess;
DExpectExtend.js19 import assertLess from './assertLess';
48 this.matchers.assertLess = assertLess;
/test/xts/acts/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/
DassertLess.test.js21 expect(a).assertLess(b)
26 expect(a).assertLess(b);
/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/
DVideoPlayerFuncCallbackTest.test.js268 expect(Math.abs(endTime - startTime - PLAY_TIME)).assertLess(DELTA_TIME);
346 expect(seekDoneTime).assertLess(DELTA_SEEK_TIME);
348 … expect(Math.abs(videoPlayer.currentTime - DURATION_TIME)).assertLess(DELTA_SEEK_TIME);
350 … expect(Math.abs(videoPlayer.currentTime - NEXT_FRAME_TIME)).assertLess(DELTA_SEEK_TIME);
355 expect(seekDoneTime).assertLess(DELTA_SEEK_TIME);
357 … expect(Math.abs(videoPlayer.currentTime - NEXT_FRAME_TIME)).assertLess(DELTA_SEEK_TIME);
359 … expect(Math.abs(videoPlayer.currentTime - PREV_FRAME_TIME)).assertLess(DELTA_SEEK_TIME);
433 … expect(Math.abs(endTime - startTime - (0.75 * PLAY_TIME_1S))).assertLess(DELTA_TIME * 0.75);
436 expect(Math.abs(endTime - startTime - (PLAY_TIME_1S))).assertLess(DELTA_TIME);
439 … expect(Math.abs(endTime - startTime - (1.25 * PLAY_TIME_1S))).assertLess(DELTA_TIME * 1.25);
[all …]
DVideoPlayerFuncPromiseTest.test.js93 … expect(Math.abs(newTime - startTime - (0.75 * PLAY_TIME_1S))).assertLess(DELTA_TIME * 0.75);
97 expect(Math.abs(newTime - startTime - (PLAY_TIME_1S))).assertLess(DELTA_TIME);
101 … expect(Math.abs(newTime - startTime - (1.25 * PLAY_TIME_1S))).assertLess(DELTA_TIME * 1.25);
105 … expect(Math.abs(newTime - startTime - (1.75 * PLAY_TIME_1S))).assertLess(DELTA_TIME * 1.75);
109 … expect(Math.abs(newTime - startTime - (2 * PLAY_TIME_1S))).assertLess(DELTA_TIME * 2);
191 expect(Math.abs(endTime - startTime - PLAY_TIME)).assertLess(DELTA_TIME);
248 expect(Math.abs(endTime - startTime - PLAY_TIME_1S)).assertLess(DELTA_TIME);
343 expect(Math.abs(endTime - startTime - PLAY_TIME)).assertLess(DELTA_TIME);
348 expect(Math.abs(videoPlayer.currentTime - NEXT_FRAME_TIME)).assertLess(DELTA_SEEK_TIME);
355 expect(Math.abs(videoPlayer.currentTime - PREV_FRAME_TIME)).assertLess(DELTA_SEEK_TIME);
[all …]
/test/xts/acts/startup/startup_standard/deviceinfo/src/main/js/test/
DDeviceInfoJsUnit.test.js852 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE)
871 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
897 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
923 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE)
943 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
968 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE)
987 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
1013 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
1040 expect(len).assertLess(1001);
1065 expect(len).assertLess(MAX_CHARACTERS_NUM_TWO);
[all …]
/test/xts/acts/security/asset/asset_js/src/main/ets/test/
DAssetPerformanceNew.test.ets65 expect((endTime - beginTime) / times).assertLess(120);
92 expect((endTime - beginTime) / times).assertLess(120);
120 expect((endTime - beginTime) / times).assertLess(120);
146 expect((endTime - beginTime) / times).assertLess(50);
173 expect((endTime - beginTime) / times).assertLess(1500);
200 expect((endTime - beginTime) / times).assertLess(1500);
/test/xts/acts/usb/usb_standard/src/main/js/test/
DUsbDevicePipeJsunitEx.test.js576 expect(isClaim).assertLess(0);
616 expect(isClaim).assertLess(0);
656 expect(isClaim).assertLess(0);
696 expect(isClaim).assertLess(0);
736 expect(isClaim).assertLess(0);
911 expect(isClaim).assertLess(0);
951 expect(isClaim).assertLess(0);
991 expect(isClaim).assertLess(0);
1031 expect(isClaim).assertLess(0);
1071 expect(isClaim).assertLess(0);
[all …]
/test/xts/acts/multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/
DAVPlayerDataSrcNoSeekAPITest.test.js558 expect(avPlayer.currentTime - 0).assertLess(DELTA_TIME);
560 … expect(avPlayer.currentTime - videoInfor[srcCount].PREV_FRAME).assertLess(DELTA_TIME);
565 … expect(avPlayer.currentTime - videoInfor[srcCount].PREV_FRAME).assertLess(DELTA_TIME);
567 … expect(avPlayer.currentTime - videoInfor[srcCount].NEXT_FRAME).assertLess(DELTA_TIME);
572 … expect(avPlayer.currentTime - videoInfor[srcCount].NEXT_FRAME).assertLess(DELTA_TIME);
574 expect(avPlayer.currentTime - seekTime).assertLess(DELTA_TIME);
595 expect(avPlayer.currentTime - seekDoneTime).assertLess(DELTA_TIME);
613 … expect(Math.abs(newTime - startTime - (0.75 * PLAY_TIME))).assertLess(DELTA_TIME * 0.75);
617 expect(Math.abs(newTime - startTime - (PLAY_TIME))).assertLess(DELTA_TIME);
621 … expect(Math.abs(newTime - startTime - (1.25 * PLAY_TIME))).assertLess(DELTA_TIME * 1.25);
[all …]
/test/xts/acts/arkui/ace_ets_layout_test/ace_ets_layout_flex_test/entry/src/main/ets/test/Flex/alignItems/ItemAlign_Stretch/
DFlexExceedJsunit.test.ets70 expect(textExceed01.bottom).assertLess(flexExceed01.bottom)
72 expect(textExceed03.right).assertLess(flexExceed01.right)
108 expect(textExceed01.bottom).assertLess(flexExceed01.bottom)
110 expect(textExceed03.right).assertLess(flexExceed01.right)
DFlexHeightModifyJsunit.test.ets72 expect(textHeightModify03.right).assertLess(flexHeightModify.right)
111 expect(textHeightModify03.right).assertLess(flexHeightModify.right)
/test/xts/acts/startup/startup_standard/init_ndkTest/entry/src/main/ets/test/
DinitNdk.test.ets62 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
108 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
154 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
203 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
251 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
300 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
349 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
398 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
447 expect(len).assertLess(MAX_CHARACTERS_NUM_TWO);
496 expect(len).assertLess(MAX_CHARACTERS_NUM_TWO);
[all …]
/test/xts/acts/multimedia/media/media_js_standard/
DVideoPlayerTestBase.js52 expect(Math.abs(videoPlayer.duration - duration)).assertLess(500);
78 expect(Math.abs(endTime - startTime - playTime)).assertLess(1000);
206 expect(Math.abs(videoPlayer.duration - duration)).assertLess(500);
227 expect(Math.abs(videoPlayer.duration - duration)).assertLess(500);
DVideoRecorderTestBase.js118 expect(Math.abs(obj['bitrate'] - descriptionValue[index++])).assertLess(BITRATE_DELTA_TIME);
165 expect(Math.abs(videoPlayer.duration - duration)).assertLess(DELTA_TIME);
DAudioPlayerTestBase.js44 expect(Math.abs(audioPlayer.duration - duration)).assertLess(500);
DMediaTestBase.js199 expect(Math.abs(property - descriptionValue[i])).assertLess(500);
214 expect(Math.abs(property - descriptionValue[i])).assertLess(500);
/test/testfwk/arkxtest/jsunit/
Dindex.d.ts73 assertLess(expectValue: number): void
/test/xts/acts/arkui/ace_ets_layout_test/ace_ets_layout_column_test/entry/src/main/ets/test/Column/spaceChanged/
DColumn_Space_Default.test.ets79 expect(Column_Space_Default_013.bottom).assertLess(Column_Space_Default_01.bottom);
120 expect(Column_Space_Default_013.bottom).assertLess(Column_Space_Default_01.bottom);
162 expect(Column_Space_Default_023.bottom).assertLess(Column_Space_Default_02.bottom);
204 expect(Column_Space_Default_023.bottom).assertLess(Column_Space_Default_02.bottom);
246 expect(Column_Space_Default_013.bottom).assertLess(Column_Space_Default_01.bottom);
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/test/
DtextArea_center.test.ets109 expect(y2).assertLess(y1);
150 expect(y6).assertLess(y5);
Dsearch_center.test.ets70 expect(y2).assertLess(y1);
/test/xts/acts/arkui/ace_ets_layout_test/ace_ets_layout_column_test/entry/src/main/ets/test/Column/flexShrink/
DflexShrink_Default.test.ets79 expect(Column_flexShrink_013.bottom).assertLess(Column_flexShrink_01.bottom);
124 expect(Column_flexShrink_013.bottom).assertLess(Column_flexShrink_01.bottom);
169 expect(Column_flexShrink_013.bottom).assertLess(Column_flexShrink_01.bottom);
209 expect(Column_flexShrink_023.bottom).assertLess(Column_flexShrink_02.bottom);
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/test/ScrollToIndex/
DScrollToIndexForGridJsunit02.test.ets76 expect(distanceTop).assertLess(centerDistanceTop);
179 expect(distanceTop).assertLess(centerDistanceTop);
/test/xts/acts/arkui/ace_ets_layout_test/ace_ets_layout_column_test/entry/src/main/ets/test/Column/subComponentChanged/
DColumnSetPadding_SubChange.test.ets62 expect(columnSetPadding.bottom).assertLess(columnSetPadding_3.bottom)
DColumnSetPadding_SubChangeMar.test.ets63 expect(columnSetPad.bottom).assertLess(columnSetPad_3.bottom)
DColumnSetPosition_SubChange.test.ets71 expect(columnPosition_3.bottom).assertLess(columnPosition.bottom)

123