/ohos5.0/foundation/distributeddatamgr/preferences/test/js/unittest/system_storage/src/ |
H A D | SystemStorageJsunit.test.js | 24 afterEach(async function (done) { 50 success: async function () { 54 complete: async function () { 83 success: async function () { 90 complete: async function () { 114 success: async function () { 146 success: async function () { 384 fail: async function () { 428 fail:async function () { 438 fail:async function () { [all …]
|
/ohos5.0/base/security/certificate_framework/frameworks/js/napi/certificate/src/ |
H A D | napi_common.cpp | 56 napi_create_promise(env, &async->deferred, &async->promise); in GetCallbackAndPromise() 64 if (async->errCode != CF_SUCCESS) { in ReturnCallbackResult() 65 businessError = CertGenerateBusinessError(env, async->errCode, async->errMsg); in ReturnCallbackResult() 84 CertGenerateBusinessError(env, async->errCode, async->errMsg)); in ReturnPromiseResult() 90 if (async == nullptr) { in ReturnJSResult() 161 if (async == nullptr) { in FreeAsyncContext() 166 async->asyncWork = nullptr; in FreeAsyncContext() 171 async->callback = nullptr; in FreeAsyncContext() 175 async->paramRef = nullptr; in FreeAsyncContext() 177 CfFree(async); in FreeAsyncContext() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
H A D | select.rs | 24 async fn do_async1() -> i32 { in sdv_new_select_basic() 28 async fn do_async2() -> i32 { in sdv_new_select_basic() 32 async fn do_async3() -> bool { in sdv_new_select_basic() 36 let handle = ylong_runtime::spawn(async { in sdv_new_select_basic() 72 ylong_runtime::spawn(async move { in sdv_new_select_channel() 76 ylong_runtime::spawn(async move { in sdv_new_select_channel() 146 async fn do_async1() -> i32 { in sdv_new_select_match() 150 async fn do_async2() -> Option<i32> { in sdv_new_select_match() 194 async fn do_async(&mut self) {} in sdv_new_select_precondition() 218 async fn do_async1() {} in sdv_new_select_panic() [all …]
|
H A D | block_on.rs | 78 async fn task() -> i32 { in sdv_block_on_nest_spawn_spawn_blocking() 81 .spawn(async { in sdv_block_on_nest_spawn_spawn_blocking() 108 async fn task() -> i32 { in sdv_block_on_nest_spawn_and_spawn() 111 .spawn(async { in sdv_block_on_nest_spawn_and_spawn() 124 .spawn(async { in sdv_block_on_nest_spawn_and_spawn() 149 async fn task() -> i32 { in sdv_block_on_nest_spawn_nest_spawn() 152 .spawn(async { in sdv_block_on_nest_spawn_nest_spawn() 159 .spawn(async { in sdv_block_on_nest_spawn_nest_spawn() 183 async fn task() -> i32 { in sdv_block_on_nest_spawn_nest_spawn2() 186 .spawn(async { in sdv_block_on_nest_spawn_nest_spawn2() [all …]
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/test/unittest/pasteboardperf/ |
H A D | PasteBoardSyncApiPerfJsunit.test.js | 21 beforeAll(async function () { 25 afterAll(async function () { 65 it('createData_performance_test_001', 0, async function (done) { 79 it('createRecord_performance_test_001', 0, async function (done) { 132 it('createUriData_performance_test_001', 0, async function (done) { 197 it('addRecord_performance_test_001', 0, async function (done) { 212 it('getRecord_performance_test_001', 0, async function (done) { 226 it('hasType_performance_test_001', 0, async function (done) { 298 it('addRecord_performance_test_002', 0, async function (done) { 526 it('on_performance_test_001', 0, async function (done) { [all …]
|
/ohos5.0/foundation/distributeddatamgr/preferences/test/js/unittest/preferences/src/ |
H A D | PreferencesCallBackJsunit.test.js | 42 beforeEach(async function () { 47 afterEach(async function () { 61 it('testPreferencesClear0012', 0, async function (done) { 64 mPreferences.clear(async function (err, ret) { 76 it('testPreferencesHasKey0032', 0, async function (done) { 89 it('testPreferencesHasKey0033', 0, async function (done) { 102 it('testPreferencesHasKey0034', 0, async function (done) { 115 it('testPreferencesHasKey0035', 0, async function (done) { 128 it('testPreferencesHasKey0036', 0, async function (done) { 166 it('testPreferencesGetInt0082', 0, async function (done) { [all …]
|
H A D | PreferencesPromiseJsunit.test.js | 41 beforeEach(async function () { 46 afterEach(async function () { 143 await promise.then(async (ret) => { 324 await promise.then(async (ret) => { 346 await promise.then(async (ret) => { 368 await promise.then(async (ret) => { 389 await promise.then(async (ret) => { 410 await promise.then(async (ret) => { 450 await promise.then(async (ret) => { 473 await promise.then(async (ret) => { [all …]
|
H A D | PreferencesHelperJsunit.test.js | 30 beforeEach(async function () { 35 afterEach(async function () { 49 it('testGetPreferencesHelper001', 0, async function () { 60 it('testGetPreferencesHelper002', 0, async function (done) { 62 await promise.then(async (pref) => { 77 it('testGetPreferencesHelper003', 0, async function (done) { 92 it('testGetPreferencesHelper004', 0, async function (done) { 106 it('testGetPreferencesHelper005', 0, async function (done) { 121 it('testGetPreferencesHelper006', 0, async function (done) { 240 it('testPreferencesOn001', 0, async function () { [all …]
|
/ohos5.0/foundation/multimedia/audio_framework/frameworks/js/napi/audiorenderer/test/unittest/audio_renderer_interrupt_test/ |
H A D | AudioRendererInterruptCommonTypeUnitTest.js | 19 beforeAll(async function () { 128 async function start(render,done) { 140 async function startFail(render,done,render1) { 153 async function stop(render,done) { 165 async function release(render,done) { 180 async function interruptPauseType(eventAction) { 188 async function interruptType(eventAction) { 260 render1.on("audioInterrupt",async (eventAction) => { 374 render2.on("audioInterrupt", async(eventAction) => { 392 render2.on("audioInterrupt", async(eventAction) => { [all …]
|
H A D | AudioRendererInterruptRareTypeUnitTest.js | 19 beforeAll(async function () { 128 async function start(render,done) { 140 async function interruptPauseType(eventAction) { 148 async function interruptType(eventAction) { 156 async function startFail(render,done,render1) { 170 async function stop(render,done) { 182 async function release(render,done) { 242 render1.on("audioInterrupt", async(eventAction) => { 261 render1.on("audioInterrupt",async (eventAction) => { 279 render1.on("audioInterrupt", async(eventAction) => { [all …]
|
/ohos5.0/base/theme/wallpaper_mgr/frameworks/js/napi/test/unittest/src/wallpaper_js/ |
H A D | Wallpaper.test.js | 58 beforeAll(async function () { 71 afterAll(async function () { 78 async function createTempImage() { 94 async function createTempPixelMap() { 2561 it('onCallbackTest001', 0, async function (done) { 2801 it('setVideoTest001', 0, async function (done) { 2826 it('setVideoTest002', 0, async function (done) { 2850 it('setVideoTest003', 0, async function (done) { 2874 it('setVideoTest004', 0, async function (done) { 2899 it('setVideoTest005', 0, async function (done) { [all …]
|
/ohos5.0/base/time/time_service/test/unittest/js_test/permission/ |
H A D | SystemTimerException.test.js | 23 async function testCreateTimerPromise(options, done) { 35 async function testCreateTimerCallback(options, done) { 69 it('testCreateTimerType001', 0, async function (done) { 91 it('testCreateTimerType002', 0, async function (done) { 110 it('testCreateTimerRepeat003', 0, async function (done) { 170 it('testCreateTimerNull006', 0, async function (done) { 193 it('testCreateTimerRepeat007', 0, async function (done) { 231 it('testCreateTimerType009', 0, async function (done) { 261 it('testCreateTimerType010', 0, async function (done) { 280 it('testCreateTimerRepeat011', 0, async function (done) { [all …]
|
H A D | SystemTimeGet.test.js | 33 it('testGetCurrentTimeMs001', 0, async function (done) { 51 it('testGetCurrentTimeMs002', 0, async function (done) { 72 it('testGetCurrentTimeMs003', 0, async function (done) { 261 it('testGetRealTimeMs001', 0, async function (done) { 278 it('testGetRealTimeMs002', 0, async function (done) { 298 it('testGetRealTimeMs003', 0, async function (done) { 315 it('testGetRealTimeMs004', 0, async function (done) { 372 it('testGetDate001', 0, async function (done) { 390 it('testGetDate002', 0, async function (done) { 553 it('testGetTimezone001', 0, async function (done) { [all …]
|
H A D | SystemTimerNormal.test.js | 24 async function createTimerCallback(options ,done){ 35 async function createTimerPromise(options, done){ 460 it('testStartTimer001', 0, async (done) => { 487 it('testStartTimer002', 0, async (done) => { 584 it('testStopTimer001', 0, async (done) => { 611 it('testStopTimer002', 0, async (done) => { 638 it('testStopTimer003', 0, async (done) => { 696 it('testStopTimer005', 0, async (done) => { 723 it('testStopTimer006', 0, async (done) => { 751 it('testStopTimer007', 0, async (done) => { [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/test/unittest/distributeddata/ |
H A D | SingleKvStoreDataCallbackJsTest.js | 76 beforeAll(async function (done) { 85 afterAll(async function (done) { 92 beforeEach(async function (done) { 101 afterEach(async function (done) { 119 it('SingleKvStorePutStringCallbackTest001', 0, async function (done) { 223 it('SingleKvStorePutIntCallbackTest001', 0, async function (done) { 248 it('SingleKvStorePutIntCallbackTest002', 0, async function (done) { 274 it('SingleKvStorePutIntCallbackTest003', 0, async function (done) { 300 it('SingleKvStorePutIntCallbackTest004', 0, async function (done) { 326 it('SingleKvStoreGetIntCallbackTest001', 0, async function (done) { [all …]
|
H A D | DeviceKvStoreDataCallbackJsTest.js | 79 beforeAll(async function (done) { 120 afterAll(async function (done) { 127 beforeEach(async function (done) { 136 afterEach(async function (done) { 154 it('DeviceKvStorePutStringCallbackTest001', 0, async function (done) { 258 it('DeviceKvStorePutIntCallbackTest001', 0, async function (done) { 283 it('DeviceKvStorePutIntCallbackTest002', 0, async function (done) { 309 it('DeviceKvStorePutIntCallbackTest003', 0, async function (done) { 335 it('DeviceKvStorePutIntCallbackTest004', 0, async function (done) { 361 it('DeviceKvStoreGetIntCallbackTest001', 0, async function (done) { [all …]
|
H A D | KvStoreDataResultSetJsTest.js | 46 beforeAll(async function (done) { 73 afterAll(async function (done) { 80 beforeEach(async function (done) { 100 await kvStore.putBatch(entries).then(async (err) => { 115 afterEach(async function (done) { 143 it('KvStoreResultSetGetCountTest001', 0, async function(done) { 161 it('KvStoreResultSetGetCountTest002', 0, async function(done) { 630 it('KvStoreResultSetMoveTest001', 0, async function(done) { 647 it('KvStoreResultSetMoveTest002', 0, async function(done) { 668 it('KvStoreResultSetMoveTest003', 0, async function(done) { [all …]
|
H A D | DeviceKvStoreDataPromiseJsTest.js | 79 beforeAll(async function (done) { 120 afterAll(async function (done) { 127 beforeEach(async function (done) { 139 afterEach(async function (done) { 1251 await kvStore.putBatch(entries).then(async (err) => { 1648 await kvStore.commit().then(async (err) => { 1702 await kvStore.rollback().then(async (err) => { 1790 await kvStore.commit(1).then(async (err) => { 1832 await kvStore.commit(2.000).then(async (err) => { 1853 await kvStore.rollback(1).then(async (err) => { [all …]
|
/ohos5.0/foundation/multimedia/audio_framework/frameworks/js/napi/audiomanager/test/unittest/spatialization_manager_test/ |
H A D | AudioSpatializationManagerJsUnitTest.js | 41 beforeAll(async function () { 63 it("SUB_AUDIO_SPATIALIZATION_MANAGER_IS_SPATIALIZATION_ENABLED_001", 0, async function (done) { 82 it("SUB_AUDIO_SPATIALIZATION_MANAGER_SET_SPATIALIZATION_ENABLED_001", 0, async function (done) { 101 it("SUB_AUDIO_SPATIALIZATION_MANAGER_SET_SPATIALIZATION_ENABLED_002", 0, async function (done) { 120 it("SUB_AUDIO_SPATIALIZATION_MANAGER_SET_SPATIALIZATION_ENABLED_003", 0, async function (done) { 144 it("SUB_AUDIO_SPATIALIZATION_MANAGER_SET_SPATIALIZATION_ENABLED_004", 0, async function (done) { 168 it("SUB_AUDIO_SPATIALIZATION_MANAGER_SET_SPATIALIZATION_ENABLED_001", 0, async function (done) { 248 it("SUB_AUDIO_SPATIALIZATION_MANAGER_IS_HEAD_TRACKING_ENABLED_001", 0, async function (done) { 267 it("SUB_AUDIO_SPATIALIZATION_MANAGER_SET_HEAD_TRACKING_ENABLED_001", 0, async function (done) { 782 it("SUB_AUDIO_SPATIALIZATION_MANAGER_ON_UNKNOWN_CALLBACK_001", 0, async function (done) { [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/test/unittest/distributedKVStore/ |
H A D | SingleKvStoreKVPromiseJsTest.js | 79 beforeAll(async function (done) { 86 afterAll(async function (done) { 92 beforeEach(async function (done) { 101 afterEach(async function (done) { 654 await kvStore.put("name", "Bob").then(async () => { 692 await kvStore.put("name", "bob").then(async () => { 1078 await kvStore.putBatch(values).then(async (err) => { 1641 await kvStore.commit().then(async (err) => { 1685 await kvStore.rollback().then(async (err) => { 1765 await kvStore.commit().then(async (err) => { [all …]
|
H A D | DeviceKvStoreKVPromiseJsTest.js | 80 beforeAll(async function (done) { 116 afterAll(async function (done) { 123 beforeEach(async function (done) { 132 afterEach(async function (done) { 687 await kvStore.put("name", "bob").then(async () => { 1075 await kvStore.putBatch(values).then(async (err) => { 1104 await kvStore.putBatch(values).then(async (err) => { 1638 await kvStore.commit().then(async (err) => { 1682 await kvStore.rollback().then(async (err) => { 1762 await kvStore.commit().then(async (err) => { [all …]
|
/ohos5.0/foundation/distributeddatamgr/relational_store/test/js/relationalstore/unittest/src/ |
H A D | RdbstorePredicatesJsunit.test.js | 87 beforeAll(async function () { 104 afterAll(async function () { 110 async function buildAllDataType1() { 115 async function buildAllDataType2() { 120 async function buildAllDataType3() { 133 it('testEqualTo0001', 0, async function (done) { 153 it('testEqualTo0002', 0, async function (done) { 2567 it('testIn0001', 0, async function (done) { 2585 it('testIn0002', 0, async function (done) { 2603 it('testIn0003', 0, async function (done) { [all …]
|
/ohos5.0/foundation/distributeddatamgr/relational_store/test/js/dataability/unittest/src/ |
H A D | DataAbilityPredicatesJsunit.test.js | 36 beforeAll(async function () { 53 afterAll(async function () { 70 async function buildAllDataType1() { 90 async function buildAllDataType2() { 110 async function buildAllDataType3() { 1330 it('testDataAbilityGlob0001', 0, async function (done) { 1351 it('testDataAbilityGlob0002', 0, async function (done) { 1372 it('testDataAbilityGlob0003', 0, async function (done) { 1859 it('testDataAbilityAnd0001', 0, async function (done) { 1881 it('testDataAbilityAnd0002', 0, async function (done) { [all …]
|
/ohos5.0/foundation/distributeddatamgr/relational_store/test/js/rdb/unittest/src/ |
H A D | RdbstorePredicatesJsunit.test.js | 34 beforeAll(async function () { 51 afterAll(async function () { 57 async function buildAllDataType1() { 77 async function buildAllDataType2() { 97 async function buildAllDataType3() { 124 it('testEqualTo0001', 0, async function (done) { 2393 it('testIn0001', 0, async function (done) { 2410 it('testIn0002', 0, async function (done) { 2427 it('testIn0003', 0, async function (done) { 2444 it('testIn0004', 0, async function (done) { [all …]
|
/ohos5.0/foundation/distributeddatamgr/preferences/test/js/unittest/storage/src/ |
H A D | StoragePromiseJsunit.test.js | 50 it('testClear0011', 0, async function () { 66 it('testHasKey0031', 0, async function () { 81 it('testHasKey0032', 0, async function () { 96 it('testHasKey0033', 0, async function () { 111 it('testHasKey0034', 0, async function () { 126 it('testHasKey0035', 0, async function () { 218 await promise.then(async(ret) => { 237 await promise.then(async (ret) => { 256 await promise.then(async (ret) => { 276 await promise.then(async (ret) => { [all …]
|