Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 4302) sorted by relevance

12345678910>>...173

/test/xts/acts/distributeddatamgr/preferencesjstest/hap/src/main/js/test/
DV9_PreferencesCallBackJsunit.test.js40 mPreference.put(KEY_TEST_STRING_ELEMENT, 'abc', function (err, ret) { argument
41 if (err) {
42 … console.log("put err =" + err + ", code =" + err.code + ", message =" + err.message)
64 mPreference.clear(function (err, val) { argument
65 if(err){
66 … console.log("clear err =" + err + ", code =" + err.code +", message =" + err.message)
69 mPreference.put(KEY_TEST_STRING_ELEMENT, 'abc', function (err, ret) { argument
70 if(err){
71 … console.log("put err =" + err + ", code =" + err.code +", message =" + err.message)
74 … mPreference.get(KEY_TEST_STRING_ELEMENT, "defaultvalue", function (err, pre) { argument
[all …]
DV9_PreferencesPromiseJsunit.test.js73 }).catch((err) => {
74 … console.log("get err =" + err + ", code =" + err.code +", message =" + err.message)
77 }).catch((err) => {
78 …console.log("removePreferencesFromCache err =" + err + ", code =" + err.code +", message =" + err.…
81 }).catch((err) => {
82 … console.log("flush err =" + err + ", code =" + err.code +", message =" + err.message)
85 }).catch((err) => {
86 … console.log("get err =" + err + ", code =" + err.code +", message =" + err.message)
89 }).catch((err) => {
90 … console.log("put err =" + err + ", code =" + err.code +", message =" + err.message)
[all …]
DPreferencesFlushJsunit.test.js66 }).catch((err) => {
67 console.log(TAG + "put failed error message = " + err + "error code = " + err.code);
73 }).catch((err) => {
74 … console.log(TAG + "get res1 failed error message = " + err + "error code = " + err.code);
79 }).catch((err) => {
80 … console.log(TAG + "flush failed error message = " + err + "error code = " + err.code);
85 }).catch((err) => {
86 … console.log(TAG + "remove failed error message = " + err + "error code = " + err.code);
96 }).catch((err) => {
97 … console.log(TAG + "get res2 failed error message = " + err + "error code = " + err.code);
[all …]
/test/xts/acts/multimedia/avsession/avsession_js_standard/avsessionManager/src/main/js/test/
DAVSessionControllerErrorCode.test.js46 }).catch(err => {
47 … console.info(`TestLog: session destroy error: code: ${err.code}, message: ${err.message}`);
56 }).catch(err => {
57 … console.info(`TestLog: session deactivate error: code: ${err.code}, message: ${err.message}`);
67 }).catch(err => {
68 … console.info(`TestLog: controller destroy error: code: ${err.code}, message: ${err.message}`);
101 } catch (err) {
102 expect(err.code).assertEqual(6600102);
112 } catch (err) {
113 expect(err.code).assertEqual(6600102);
[all …]
DAVSessionCallback.test.js38 }).catch((err) => {
39 … console.info(`TestLog: Session create error: code: ${err.code}, message: ${err.message}`);
45 }).catch((err) => {
46 … console.info(`TestLog: Session activate error: code: ${err.code}, message: ${err.message}`);
56 }).catch((err) => {
57 … console.info(`TestLog: Session destroy error: code: ${err.code}, message: ${err.message}`);
62 }).catch((err) => {
63 … console.info(`TestLog: Controller destroy error: code: ${err.code}, message: ${err.message}`);
108 session.setAVMetadata(metadata0, (err) => {
109 if (err) {
[all …]
DAVSessionErrorCode.test.js94 }).catch(err => {
95 … console.info(`TestLog: session destroy error: code: ${err.code}, message: ${err.message}`);
117 } catch (err) {
118 expect(err.code).assertEqual(6600102);
137 } catch (err) {
138 expect(err.code).assertEqual(6600102);
152 }).catch((err) => {
153 expect(err.code == 6600101).assertTrue();
155 … console.info(`TestLog: Session create error: code: ${err.code}, message: ${err.message}`);
162 }).catch((err) => {
[all …]
/test/xts/acts/hiviewdfx/hiappeventtest/hiappeventsubjstest/src/main/js/test/
DHiAppEventSubSecond.test.js30 HiAppEventV9.write( (err) => {
31 if (err) {
32 console.error(`HiAppEventSub30 >code: ${err.code}, message: ${err.message}`);
37 } catch (err) {
38 … console.error(`HiAppEventSub30 delay > error code: ${err.code}, error msg: ${err.message}`)
39 expect(err.code == 401).assertTrue()
66 } catch (err) {
67 … console.error(`HiAppEventSub31 delay > error code: ${err.code}, error msg: ${err.message}`)
68 expect(err.code == 401).assertTrue()
93 }, (err) => {
[all …]
/test/xts/acts/account/appaccount/actsaccountoperatetest/src/main/js/test/
DAuthToken.test.js44 appAccountManager.createAccount("account_tokenTest_name",(err,)=>{
45 … console.info("====>ActsAccountAuthToken_9100 createAccount err:" + JSON.stringify(err));
46 expect(err).assertEqual(null);
47 … appAccountManager.setAuthToken("account_tokenTest_name","authType1","test_token1",(err)=>{
48 … console.info("====>ActsAccountAuthToken_9100 setAuthToken err:" + JSON.stringify(err));
49 expect(err).assertEqual(null);
50 … appAccountManager.setAuthToken("account_tokenTest_name","authType1","test_token2",(err)=>{
51 … console.info("====>ActsAccountAuthToken_9100 setAuthToken err:" + JSON.stringify(err));
52 expect(err).assertEqual(null);
53 …tManager.setAuthTokenVisibility("account_tokenTest_name","authType1",valid_owner_name,true,(err)=>{
[all …]
DCustomData.test.js31 appAccountManager.createAccount("account_name_0100",(err)=>{
32 … console.info("====>add accountActsAccountCustomData_0100 err:" + JSON.stringify(err));
33 expect(err).assertEqual(null);
34 appAccountManager.setCustomData("account_name_0100", "key1", "value1", (err)=>{
35 … console.info("====>setCustomData ActsAccountCustomData_0100 err:" + JSON.stringify(err));
36 expect(err).assertEqual(null);
37 appAccountManager.getCustomData("account_name_0100", "key1", (err, data)=>{
38 console.info("====>getCustomData 0100 err:" + JSON.stringify(err));
40 expect(err).assertEqual(null);
42 appAccountManager.removeAccount("account_name_0100", (err)=>{
[all …]
DErrCode.test.js34 … appAccountManager.createAccount("test_account_name", {"test_key":"test_extrainfo"}, (err)=>{
35 … console.info("====>ActsAccountErrCode_0100 create account callback err:" + JSON.stringify(err));
36 expect(err).assertEqual(null);
37 appAccountManager.removeAccount("test_account_name", (err)=>{
38 … console.info("====>ActsAccountErrCode_0100 delete Account err:" + JSON.stringify(err));
39 expect(err).assertEqual(null);
44 } catch(err) {
45 … console.info("====>ActsAccountErrCode_0100 create account catch err:" + JSON.stringify(err));
63 …nager.createAccount("test_account_name", {"test_key":"test_extrainfo"}, "test_more_param", (err)=>{
64 … console.info("====>ActsAccountErrCode_0200 create account callback err:" + JSON.stringify(err));
[all …]
DAccountCredential.test.js33 appAccountManager.createAccount("account_name_0100", (err)=>{
34 … console.info("====>add account ActsAppAccountCredential_0100 err:" + JSON.stringify(err));
35 expect(err).assertEqual(null);
36 … appAccountManager.setCredential("account_name_0100", "credentialType1", "credential1",(err)=>{
37 … console.info("====>ActsAppAccountCredential_0100 setCredential:" + JSON.stringify(err));
38 expect(err).assertEqual(null);
39 … appAccountManager.getCredential("account_name_0100", "credentialType1", (err,data)=>{
40 console.info("====>getCredential 0100 err:" + JSON.stringify(err));
42 expect(err).assertEqual(null);
44 appAccountManager.removeAccount("account_name_0100", (err)=>{
[all …]
/test/xts/acts/notification/ces_standard/actsCommonEventManagerTest/src/main/js/test/
DActsCommonEventManagerTest.js31 commonEventManager.publish("EVENT01", (err) => {
32 if (err) {
33 …o(`Sub_Notification_Ans_Publish_Publish_4700 err, error code: ${err.code}, message: ${err.message}…
42 } catch (err) {
43 …tification_Ans_Publish_Publish_4700 failed, catch error code: ${err.code}, message: ${err.message}…
64 commonEventManager.publish("EVENT02", options, (err) => {
65 if (err) {
66 …o(`Sub_Notification_Ans_Publish_Publish_4800 err, error code: ${err.code}, message: ${err.message}…
75 } catch (err) {
76 …tification_Ans_Publish_Publish_4800 failed, catch error code: ${err.code}, message: ${err.message}…
[all …]
/test/xts/acts/account/appaccount/actsaccounttest/src/main/js/test/
DOAuthToken.test.js46 appAccountManager.addAccount("account_tokenTest_name",(err,)=>{
47 … console.info("====>ActsAccountOAuthToken_9100 addAccount err:" + JSON.stringify(err));
48 expect(err).assertEqual(null);
49 … appAccountManager.setOAuthToken("account_tokenTest_name","authType1","test_token1",(err)=>{
50 … console.info("====>ActsAccountOAuthToken_9100 setOAuthToken err:" + JSON.stringify(err));
51 expect(err).assertEqual(null);
52 … appAccountManager.setOAuthToken("account_tokenTest_name","authType1","test_token2",(err)=>{
53 … console.info("====>ActsAccountOAuthToken_9100 setOAuthToken err:" + JSON.stringify(err));
54 expect(err).assertEqual(null);
55 …r.setOAuthTokenVisibility("account_tokenTest_name","authType1","other_app_bundleName",true,(err)=>{
[all …]
DAssociatedData.test.js32 appAccountManager.addAccount("account_name_0100",(err)=>{
33 … console.info("====>add accountActsAccountAssociatedData_0100 err:" + JSON.stringify(err));
34 expect(err).assertEqual(null);
35 appAccountManager.setAssociatedData("account_name_0100", "key1", "value1", (err)=>{
36 … console.info("====>setAssociatedData ActsAccountAssociatedData_0100 err:" + JSON.stringify(err));
37 expect(err).assertEqual(null);
38 appAccountManager.getAssociatedData("account_name_0100", "key1", (err, data)=>{
39 console.info("====>getAssociatedData 0100 err:" + JSON.stringify(err));
41 expect(err).assertEqual(null);
43 appAccountManager.deleteAccount("account_name_0100", (err)=>{
[all …]
DCredential.test.js33 appAccountManager.addAccount("account_name_0100", (err)=>{
34 … console.info("====>add account ActsAccountCredential_0100 err:" + JSON.stringify(err));
35 expect(err).assertEqual(null);
36 …pAccountManager.setAccountCredential("account_name_0100", "credentialType1", "credential1",(err)=>{
37 … console.info("====>ActsAccountCredential_0100 setAccountCredential:" + JSON.stringify(err));
38 expect(err).assertEqual(null);
39 … appAccountManager.getAccountCredential("account_name_0100", "credentialType1", (err,data)=>{
40 console.info("====>getAccountCredential 0100 err:" + JSON.stringify(err));
42 expect(err).assertEqual(null);
44 appAccountManager.deleteAccount("account_name_0100", (err)=>{
[all …]
DAddAccount.test.js33 appAccountManager.addAccount("account_name_callback_first", (err) => {
34 console.info("====>add account ActsAccountAddAccount_0100 err:" + JSON.stringify(err));
35 expect(err).assertEqual(null);
36 appAccountManager.deleteAccount("account_name_callback_first", (err) => {
37 console.info("====>delete Account ActsAccountAddAccount_0100 err:" + JSON.stringify(err));
38 expect(err).assertEqual(null);
57 } catch (err) {
58 console.error("====>add account fail err:" + JSON.stringify(err));
64 } catch (err) {
65 console.info("====>delete account err:" + JSON.stringify(err));
[all …]
/test/xts/acts/distributeddatamgr/crossplatform/preferencesetstest/src/main/ets/test/
DPreferencesCallBackWithError.test.ets50 mPreference.clear(function (err, val) {
51 if (err) {
52 console.log("clear err =" + err + ", code =" + err.code + ", message =" + err.message);
53 expect(!err).assertTrue();
55 mPreference.put(KEY_TEST_STRING_ELEMENT, "abc", function (err, ret) {
56 if (err) {
57 console.log("put err =" + err + ", code =" + err.code + ", message =" + err.message);
58 expect(!err).assertTrue();
60 mPreference.get(KEY_TEST_STRING_ELEMENT, "defaultvalue", function (err, pre) {
61 if (err) {
[all …]
DPreferencesPromiseWithError.test.ets80 .catch((err) => {
81 … console.log("delete err =" + err + ", code =" + err.code + ", message =" + err.message);
82 expect(!err).assertTrue();
85 .catch((err) => {
86 … console.log("flush err =" + err + ", code =" + err.code + ", message =" + err.message);
87 expect(!err).assertTrue();
90 .catch((err) => {
91 … console.log("get err =" + err + ", code =" + err.code + ", message =" + err.message);
92 expect(!err).assertTrue();
95 .catch((err) => {
[all …]
/test/xts/acts/security/cryptoFramework/js_api_test_oh40/src/main/js/test/
DSecuritySignatureVerificationTwo.test.js61 .catch((err) => {
63 "AsyCallback signAndVerifyBySpecProcess catch error: " + err
90 .catch((err) => {
92 "AsyCallback signAndVerifyBySpecProcess catch error: " + err
119 .catch((err) => {
121 "AsyPromise signAndVerifyBySpecProcess catch error: " + err
148 .catch((err) => {
150 "AsyCallback signAndVerifyBySpecProcess catch error: " + err
174 .catch((err) => {
176 "AyPromise signAndVerifyBySpecProcess catch error: " + err
[all …]
DSecuritySignatureVerificationSM2.test.js35 } catch (err) {
36 return err;
68 .catch((err) => {
71 err
93 } catch (err) {
94 console.error("signGenerator 1 error:" + err);
95 expect(err.code).assertEqual(401);
101 } catch (err) {
102 console.error("signGenerator 2 error:" + err);
103 expect(err.code).assertEqual(401);
[all …]
DSecurityCipherSM2SM4.test.js35 } catch (err) {
36 return err;
72 .catch((err) => {
74 "Security_CryptoFramework_CipherSMX_Func_0100 catch error: " + err
96 .catch((err) => {
98 "Security_CryptoFramework_CipherSMX_Func_0200 catch error: " + err
120 .catch((err) => {
122 "Security_CryptoFramework_CipherSMX_Func_0300 catch error: " + err
147 .catch((err) => {
149 "Security_CryptoFramework_CipherSMX_Func_0400 catch error: " + err
[all …]
/test/xts/acts/security/cryptoFramework/js_api_test_one/src/main/js/test/
DAsymmetricCryptographySecond.test.js43 .catch((err) => {
46 err
68 .catch((err) => {
71 err
91 } catch (err) {
92 console.error("err is:" + err.code);
93 expect(err.code).assertEqual(401);
99 } catch (err) {
100 console.error("err is:" + err.code);
101 expect(err.code).assertEqual(401);
[all …]
/test/xts/acts/sensors/sensor_standard/src/main/js/test/
DSensorOnOffTest.test_SensorFrequencyTest.test.js80 sensor.getSingleSensor(sensor.SensorId.ACCELEROMETER, (err, data) => {
81 if (err) {
82 … console.error('getSingleSensor fail, errCode:' + err.code + ' ,msg:' + err.message);
92 } catch (err) {
93 console.error('On fail, errCode:' + err.code + ' ,msg:' + err.message);
98 } catch (err) {
100 expect(err.code).assertEqual(PARAMETER_ERROR_CODE);
101 expect(err.message).assertEqual(PARAMETER_ERROR_MSG);
118 sensor.getSingleSensor(sensor.SensorId.ACCELEROMETER, (err, data) => {
119 if (err) {
[all …]
/test/xts/acts/notification/ans_standard/actsNotificationManagerSlotTest/src/main/js/test/
DActsNotificationManagerSlotTest.js30 await notificationManager.removeAllSlots((err) => {
31 if (err) {
32 console.info(`${TAG} removeAllSlots errCode: ${err.code}, errMes: ${err.message}`)
41 } catch (err) {
42 console.info(`${TAG} removeAllSlots errCode: ${err.code}, errMes: ${err.message}`)
57 await notificationManager.addSlot(notificationManager.SlotType.UNKNOWN_TYPE, (err) => {
58 if (err) {
59 console.info(`${TAG} addSlot_1 errCode: ${err.code}, errMes: ${err.message}`)
68 } catch (err) {
69 console.info(`${TAG} addSlot_1 errCode: ${err.code}, errMes: ${err.message}`)
[all …]
/test/xts/dcts/distributedhardware/distributeddevicejstest/src/main/js/test/
DdistributedDevice.test.js47 } catch (err) {
48 console.info('err is ' + err);
96 … console.error("createDeviceManager errCode:" + err.code + ",errMessage:" + err.message);
108 } catch(err) {
109 … console.error("createDeviceManager errCode:" + err.code + ",errMessage:" + err.message);
140 } catch(err) {
141 … console.error("startDiscovering errCode:" + err.code + ",errMessage:" + err.message);
167 } catch(err) {
168 … console.error("getLocalDeviceNetworkId errCode:" + err.code + ",errMessage:" + err.message);
195 } catch (err) {
[all …]

12345678910>>...173