Home
last modified time | relevance | path

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

1234

/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/entry/src/ohosTest/js/test/
DDeviceInfoJsUnit.test.js853 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE)
872 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
898 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
925 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
950 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE)
969 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
995 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
1022 expect(len).assertLess(1001);
1047 expect(len).assertLess(MAX_CHARACTERS_NUM_TWO);
1073 expect(len).assertLess(MAX_CHARACTERS_NUM_TWO);
[all …]
/test/xts/acts/security/asset/asset_js/src/main/ets/test/
DAssetPerformanceNew.test.ets58 expect((endTime - beginTime) / times).assertLess(150);
84 expect((endTime - beginTime) / times).assertLess(150);
112 expect((endTime - beginTime) / times).assertLess(200);
138 expect((endTime - beginTime) / times).assertLess(100);
165 expect((endTime - beginTime) / times).assertLess(1500);
192 expect((endTime - beginTime) / times).assertLess(1500);
/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_module_ui/ace_ets_module_layout/ace_ets_module_layout_api11/entry/src/main/ets/test/FlexTest/alignItems/ItemAlign_Stretch/
DFlexExceedJsunit.test.ets76 expect(textExceed01.bottom).assertLess(flexExceed01.bottom)
78 expect(textExceed03.right).assertLess(flexExceed01.right)
118 expect(textExceed01.bottom).assertLess(flexExceed01.bottom)
120 expect(textExceed03.right).assertLess(flexExceed01.right)
DFlexHeightModifyJsunit.test.ets76 expect(textHeightModify03.right).assertLess(flexHeightModify.right)
117 expect(textHeightModify03.right).assertLess(flexHeightModify.right)
/test/xts/acts/arkui/ace_ets_layout_test/ace_ets_layout_flex_test/entry/src/main/ets/test/Flex/alignItems/ItemAlign_Stretch/
DFlexExceedJsunit.test.ets76 expect(textExceed01.bottom).assertLess(flexExceed01.bottom)
78 expect(textExceed03.right).assertLess(flexExceed01.right)
118 expect(textExceed01.bottom).assertLess(flexExceed01.bottom)
120 expect(textExceed03.right).assertLess(flexExceed01.right)
DFlexHeightModifyJsunit.test.ets76 expect(textHeightModify03.right).assertLess(flexHeightModify.right)
117 expect(textHeightModify03.right).assertLess(flexHeightModify.right)
/test/xts/acts/startup/startup_standard/init_ndkTest/entry/src/ohosTest/ets/test/
DinitNdk.test.ets64 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
114 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
164 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
237 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
290 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
343 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
396 expect(len).assertLess(MAX_CHARACTERS_NUM_ONE);
449 expect(len).assertLess(MAX_CHARACTERS_NUM_TWO);
503 expect(len).assertLess(MAX_CHARACTERS_NUM_TWO);
549 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(obj['bitrate']/3).assertLess(descriptionValue[index++]);
165 expect(Math.abs(videoPlayer.duration - duration)).assertLess(DELTA_TIME);
DMediaTestBase.js189 expect(Math.abs(property - descriptionValue[i])).assertLess(500);
214 expect(Math.abs(property - descriptionValue[i])).assertLess(500);
DAudioPlayerTestBase.js44 expect(Math.abs(audioPlayer.duration - duration)).assertLess(500);
/test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_layout/ace_ets_module_layout_api11/entry/src/main/ets/test/ColumnTest/spaceChanged/
DColumn_Space_Default.test.ets80 expect(Column_Space_Default_013.bottom).assertLess(Column_Space_Default_01.bottom);
121 expect(Column_Space_Default_013.bottom).assertLess(Column_Space_Default_01.bottom);
163 expect(Column_Space_Default_023.bottom).assertLess(Column_Space_Default_02.bottom);
205 expect(Column_Space_Default_023.bottom).assertLess(Column_Space_Default_02.bottom);
247 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/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);
/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/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_module_ui/ace_ets_module_layout/ace_ets_module_layout_api11/entry/src/main/ets/test/ColumnTest/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_module_ui/ace_ets_module_imageText/ace_ets_module_imageText_api11/entry/src/main/ets/test/TextAreaTest/
DtextArea_center.test.ets111 expect(y2).assertLess(y1);
153 expect(y6).assertLess(y5);
/test/xts/acts/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/test/
DThermalControlMgrJs.test.js122 expect(level).assertLess(7);

1234