Home
last modified time | relevance | path

Searched refs:assertLess (Results 1 – 25 of 51) 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/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/multimedia/media/media_js_standard/
DVideoRecorderTestBase.js118 expect(Math.abs(obj['bitrate'] - descriptionValue[index++])).assertLess(BITRATE_DELTA_TIME);
165 expect(Math.abs(videoPlayer.duration - duration)).assertLess(DELTA_TIME);
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);
DAudioPlayerTestBase.js44 expect(Math.abs(audioPlayer.duration - duration)).assertLess(500);
/test/testfwk/arkxtest/jsunit/
Dindex.d.ts69 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.ets72 expect(Column_Space_Default_013.bottom).assertLess(Column_Space_Default_01.bottom);
109 expect(Column_Space_Default_013.bottom).assertLess(Column_Space_Default_01.bottom);
146 expect(Column_Space_Default_023.bottom).assertLess(Column_Space_Default_02.bottom);
183 expect(Column_Space_Default_023.bottom).assertLess(Column_Space_Default_02.bottom);
220 expect(Column_Space_Default_013.bottom).assertLess(Column_Space_Default_01.bottom);
/test/xts/acts/arkui/ace_ets_layout_test/ace_ets_layout_column_test/entry/src/main/ets/test/Column/flexShrink/
DflexShrink_Default.test.ets72 expect(Column_flexShrink_013.bottom).assertLess(Column_flexShrink_01.bottom);
112 expect(Column_flexShrink_013.bottom).assertLess(Column_flexShrink_01.bottom);
152 expect(Column_flexShrink_013.bottom).assertLess(Column_flexShrink_01.bottom);
189 expect(Column_flexShrink_023.bottom).assertLess(Column_flexShrink_02.bottom);
/test/xts/acts/arkui/ace_ets_layout_test/ace_ets_layout_column_test/entry/src/main/ets/test/Column/subComponentChanged/
DColumnSetPaddingMargin_SubChangeMar.test.ets62 expect(setPadMar.bottom).assertLess(setPadMar03.bottom)
DColumnSetPosition_SubChange.test.ets66 expect(columnPosition_3.bottom).assertLess( columnPosition.bottom)
DColumnSetPadding_SubChange.test.ets61 expect(columnSetPadding.bottom).assertLess(columnSetPadding_3.bottom)
DColumnSetPadding_SubChangeMar.test.ets62 expect(columnSetPad.bottom).assertLess(columnSetPad_3.bottom)
/test/xts/acts/arkui/ace_ets_layout_test/ace_ets_layout_flex_test/entry/src/main/ets/test/Flex/alignItems/ItemAlign_End/
DFlexPaddingJsunit.test.ets69 expect(textFlexPadding03.right).assertLess(flexPadding01.right)
/test/xts/acts/arkui/ace_ets_components_ux/ace_ets_component_indexer/src/main/ets/test/
DUtils.ets73 expect(backData.data.actualValue).assertLess(backData.data.expectedValue - (-100));
/test/xts/acts/arkui/ace_ets_layout_test/ace_ets_layout_flex_test/entry/src/main/ets/test/Flex/alignItems/ItemAlign_Center/
DFlexExceedJsunit.test.ets64 expect(textExceed03.right).assertLess(flexExceed01.right)
/test/xts/acts/arkui/ace_ets_web_dev_two/entry/src/main/ets/test/
DUtils.ets74 expect(backData.data.actualValue).assertLess(backData.data.expectedValue-(-100));
/test/xts/acts/arkui/ace_ets_web_dev_three/entry/src/main/ets/test/
DUtils.ets74 expect(backData.data.actualValue).assertLess(backData.data.expectedValue-(-100));

123