Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 4314) sorted by relevance

12345678910>>...173

/test/xts/acts/communication/wifi_ErrorCode201/src/main/js/test/
DActWifiErrorCode201.test.js80 } catch (error) {
81 … console.error(`isWifiActive failed, code is ${error.code}, message is ${error.message}`);
82 expect(error.code).assertEqual("201");
97 } catch(error) {
98 console.error(`scan failed, code is ${error.code}, message is ${error.message}`);
99 expect(error.code).assertEqual("201")
114 } catch(error) {
115 … console.error(`getScanInfoList failed, code is ${error.code}, message is ${error.message}`);
116 expect(error.code).assertEqual("201")
140 } catch(error) {
[all …]
/test/xts/acts/communication/wifi_ErrorCode401/src/main/js/test/
DActWifiErrorCode401.test.js89 } catch(error) {
90 … console.error(`addCandidateConfig promise failed, code ${error.code}, message ${error.message}`);
91 expect(error.code).assertEqual("401")
114 (error,data) => {
115 if (error) {
116 … console.error(`addCandidateConfig callback, code ${error.code}, message ${error.message}`);
117 expect(error.code).assertEqual("401")
122 } catch (error) {
123 … console.error(`addCandidateConfig failed, code ${error.code}, message ${error.message}`);
124 expect(error.code).assertEqual("401")
[all …]
/test/xts/acts/communication/wifi_ErrorCode202/src/main/js/test/
DActWifiErrorCode202.test.js81 } catch (error) {
82 … console.error(`enableWifi failed, code is ${error.code}, message is ${error.message}`);
83 expect(error.code).assertEqual("202")
99 } catch (error) {
100 … console.error(`disableWifi failed, code is ${error.code}, message is ${error.message}`);
101 expect(error.code).assertEqual("202")
132 } catch(error) {
133 …console.error(`addDeviceConfig promise failed, code is ${error.code}, message is ${error.message}`…
134 expect(error.code).assertEqual("202")
150 } catch (error) {
[all …]
/test/xts/acts/arkui/ace_ets_web_enhanced/ace_ets_web_enhanced_three/entry/src/main/ets/MainAbility/pages/
DWebCookieManagerFetchCookie.ets66 … webView.WebCookieManager.fetchCookie('https://www.example.com', (error, cookie) => {
67 if (error) {
68 console.log('error: ' + JSON.stringify(error));
74 } catch (error) {
75 console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
83 … webView.WebCookieManager.fetchCookie('https://www.example.com', (error, cookie) => {
84 if (error) {
85 console.log('error: ' + JSON.stringify(error));
91 } catch (error) {
92 console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
[all …]
DWebCookieManagerExistCookie.ets68 } catch (error) {
69 console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
76 … webView.WebCookieManager.configCookie('https://www.example.com', "a=d", (error) => {
77 if (error) {
78 console.log("error: " + JSON.stringify(error));
83 } catch (error) {
84 console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
97 .catch((error: business_error.BusinessError) => {
98 console.log('error: ' + JSON.stringify(error));
100 } catch (error) {
[all …]
DWebCookieManagerFetchCookieSync.ets68 } catch (error) {
69 console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
80 } catch (error) {
81 console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
88 … webView.WebCookieManager.configCookie('https://www.example.com', "a=d", (error) => {
89 if (error) {
90 console.log("error: " + JSON.stringify(error));
96 } catch (error) {
97 console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
111 .catch((error: business_error.BusinessError) => {
[all …]
/test/xts/acts/sensors/sensor_standard/src/main/js/test/
DSensorOnOffTest.test_oldPedometer_Detection.test.js53 } catch(error) {
54 console.error('SensorJsTest_sensor_17 exception in, msg:' + JSON.stringify(error))
85 .catch((error) => {
86 console.info('SensorJsTest_sensor_17 error:' + JSON.stringify(error));
87 expect(error.code).assertEqual(ERR_NOT_HAVE_PERMISSION);
113 … sensor.getSingleSensor(sensor.SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, (error, data) => {
114 if (error) {
115 … console.error('PedometerDetection_SensorJsTest001 getSingleSensor fail:' +JSON.stringify(error));
125 } catch (error) {
126 … console.error('PedometerDetection_SensorJsTest001 On fail, errorCode:' +JSON.stringify(error));
[all …]
DSensorOnOffTest.test_oldPedometer.test.js51 } catch(error) {
52 console.error('SensorJsTest_sensor_18 exception in, msg:' + JSON.stringify(error))
86 .catch((error) => {
87 console.info('SensorJsTest_sensor_18 error:' + JSON.stringify(error));
88 expect(error.code).assertEqual(ERR_NOT_HAVE_PERMISSION);
124 … sensor.getSingleSensor(sensor.SensorType.SENSOR_TYPE_ID_PEDOMETER, (error, data) => {
125 if (error) {
126 … console.error('Pedometer_SensorJsTest001 getSingleSensor fail:' +JSON.stringify(error));
136 } catch (error) {
137 … console.error('Pedometer_SensorJsTest001 On fail, errorCode:' +JSON.stringify(error));
[all …]
DSensorOnOffTest.test_newPedometer_Detection.test.js53 } catch(error) {
54 console.error('SensorJsTest_sensor_57 exception in, msg:' + JSON.stringify(error))
101 .catch((error) => {
102 console.info('SensorJsTest_sensor_57 error:' + JSON.stringify(error));
103 expect(error.code).assertEqual(ERR_NOT_HAVE_PERMISSION);
129 sensor.getSingleSensor(sensor.SensorId.PEDOMETER_DETECTION, (error, data) => {
130 if (error) {
131 …console.error('newPedometerDetection_SensorJsTest001 getSingleSensor fail:' +JSON.stringify(error)…
141 } catch (error) {
142 … console.error('newPedometerDetection_SensorJsTest001 On fail, errorCode:' +JSON.stringify(error));
[all …]
DSensorOnOffTest.test_newPedometer.test.js51 } catch(error) {
52 console.error('SensorJsTest_sensor_56 exception in, msg:' + JSON.stringify(error))
100 .catch((error) => {
101 console.info('SensorJsTest_sensor_56 error:' + JSON.stringify(error));
102 expect(error.code).assertEqual(ERR_NOT_HAVE_PERMISSION);
130 sensor.getSingleSensor(sensor.SensorId.PEDOMETER, (error, data) => {
131 if (error) {
132 … console.error('newPedometer_SensorJsTest001 getSingleSensor fail:' +JSON.stringify(error));
142 } catch (error) {
143 … console.error('newPedometer_SensorJsTest001 On fail, errorCode:' +JSON.stringify(error));
[all …]
/test/xts/acts/security/security_huks_reformed_test/utils/param/derive/
DpublicDeriveCallback.js28 .catch(error => {
29 … console.error(`callback: generateKeyItem failed, code: ${error.code}, msg: ${error.message}`);
32 } catch (error) {
33 …console.error(`callback: generateKeyItem input arg invalid, code: ${error.code}, msg: ${error.mess…
41 huks.generateKeyItem(keyAlias, huksOptions, function (error, data) { argument
42 if (error) {
43 reject(error);
48 } catch (error) {
62 .catch((error) => {
63 console.error(`callback1: doInit failed, code: ${error.code}, msg: ${error.message}`);
[all …]
DpublicDerivePromise.js27 .catch(error => {
28 … console.error(`promise: generateKeyItem failed, code: ${error.code}, msg: ${error.message}`);
31 } catch (error) {
32 …console.error(`promise: generateKeyItem input arg invalid, code: ${error.code}, msg: ${error.messa…
45 .catch(error => {
46 console.error(`promise: doInit key failed, code: ${error.code}, msg: ${error.message}`);
49 } catch (error) {
50 console.error(`promise: doInit input arg invalid, code: ${error.code}, msg: ${error.message}`);
62 .catch(error => {
63 console.error(`promise: doUpdate failed, code: ${error.code}, msg: ${error.message}`);
[all …]
/test/xts/acts/arkui/ace_ets_web_enhanced/ace_ets_web_enhanced_two/entry/src/main/ets/MainAbility/pages/
DWebDownloadEnumTest.ets58 } catch (error) {
59 console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
66 } catch (error) {
67 console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
74 } catch (error) {
75 console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
82 } catch (error) {
83 console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
90 } catch (error) {
91 console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
[all …]
/test/xts/acts/security/security_huks_reformed_test/utils/param/signverify/
DpublicSignverifyCallback.js31 .catch(error => {
32 … console.error(`callback: generateKeyItem failed, code: ${error.code}, msg: ${error.message}`);
35 } catch (error) {
36 …console.error(`callback: generateKeyItem input arg invalid, code: ${error.code}, msg: ${error.mess…
44 huks.generateKeyItem(keyAlias, huksOptions, function (error, data) { argument
45 if (error) {
46 reject(error);
51 } catch (error) {
66 .catch(error => {
67 console.error(`callback: importKeyItem failed, code: ${error.code}, msg: ${error.message}`);
[all …]
DpublicSignverifyPromise.js31 .catch(error => {
32 … console.error(`promise: generateKeyItem failed, code: ${error.code}, msg: ${error.message}`);
35 } catch (error) {
36 …console.error(`promise: generateKeyItem input arg invalid, code: ${error.code}, msg: ${error.messa…
50 .catch(error => {
51 console.error(`promise: importKeyItem failed, code: ${error.code}, msg: ${error.message}`);
54 } catch (error) {
55 …console.error(`promise: importKeyItem input arg invalid, code: ${error.code}, msg: ${error.message…
69 .catch(error => {
70 console.error(`promise: exportKeyItem failed, code: ${error.code}, msg: ${error.message}`);
[all …]
/test/xts/acts/communication/btmanager_errorcode401/src/main/js/test/
DBtMGattManager401.test.js36 } catch (error) {
37 console.info('[bluetooth_js] driver error info:'+ error);
113 } catch(error) {
114 console.error('[bluetooth_js]error.code:'+JSON.stringify(error.code)+
115 'error.message:'+JSON.stringify(error.message));
116 expect(error.code).assertEqual('401');
131 } catch(error) {
132 console.error(`[bluetooth_js]setBLEMtuSize3 failed, code is ${error.code},
133 message is ${error.message}`);
134 expect(error.code).assertEqual('401');
[all …]
/test/xts/acts/security/security_huks_reformed_test/utils/param/agree/
DpublicAgreeCallback.js31 .catch(error => {
32 … console.error(`callback: generateKeyItem failed, code: ${error.code}, msg: ${error.message}`);
35 } catch (error) {
36 …console.error(`callback: generateKeyItem input arg invalid, code: ${error.code}, msg: ${error.mess…
44 huks.generateKeyItem(keyAlias, huksOptions, function (error, data) { argument
45 if (error) {
46 reject(error);
51 } catch (error) {
69 .catch(error => {
70 console.error(`callback: exportKeyItem failed, code: ${error.code}, msg: ${error.message}`);
[all …]
DpublicAgreePromise.js31 .catch(error => {
32 … console.error(`promise: generateKeyItem failed, code: ${error.code}, msg: ${error.message}`);
35 } catch (error) {
36 …console.error(`promise: generateKeyItem input arg invalid, code: ${error.code}, msg: ${error.messa…
53 .catch(error => {
54 console.error(`promise: exportKeyItem failed, code: ${error.code}, msg: ${error.message}`);
57 } catch (error) {
58 …console.error(`promise: exportKeyItem input arg invalid, code: ${error.code}, msg: ${error.message…
71 .catch(error => {
72 console.error(`promise: doInit key failed, code: ${error.code}, msg: ${error.message}`);
[all …]
/test/xts/acts/location/geolocation_standard/src/main/js/test/
DLocationTest.test.js43 }).catch((error) => {
44 console.info("[lbs_js] promise then error." + JSON.stringify(error));
135 } catch (error) {
136 … console.info("[lbs_js] getLocationSwitchState callback try err." + JSON.stringify(error));
137 expect(true).assertEqual(JSON.stringify(error) != null);
156 }).catch((error) => {
157 … console.info("[lbs_js] getLocationSwitchStateLocSwitch_0004 err." + JSON.stringify(error));
160 } catch (error) {
161 … console.info("[lbs_js] getLocationSwitchState callback try err." + JSON.stringify(error));
182 } catch (error) {
[all …]
DGeocoderTest.test.js50 }).catch((error) => {
51 console.info("[lbs_js] promise then error." + JSON.stringify(error));
126 } catch (error) {
127 console.info("[lbs_js] isGeoServiceAvailable callback err." + JSON.stringify(error));
129 expect(true).assertEqual(JSON.stringify(error) != null);
149 }).catch((error) => {
150 console.info("[lbs_js] promise then error." + JSON.stringify(error));
151 expect(true).assertEqual(JSON.stringify(error) != null);
153 } catch (error) {
154 console.info("[lbs_js] isGeoServiceAvailable error." + JSON.stringify(error));
[all …]
/test/xts/acts/arkui/ace_ets_web_dev_webviewControllerError/entry/src/main/ets/MainAbility/pages/
DwebViewContCookieToGeoLocationError.ets68 } catch (error) {
69 … console.error(`emitGetCookieInitErr ErrorCode: ${error.code}, Message: ${error.message}`);
70 this.errorCode = error.code;
71 this.errorMsg = error.message;
82 } catch (error) {
83 … console.error(`emitSetCookieInitErr ErrorCode: ${error.code}, Message: ${error.message}`);
84 this.errorCode = error.code;
85 this.errorMsg = error.message;
96 } catch (error) {
97 … console.error(`emitSetCookieValueErr ErrorCode: ${error.code}, Message: ${error.message}`);
[all …]
/test/xts/acts/powermgr/battery_manager/src/main/js/test/
Dbattery_common_event.test.js1445 }).catch((error) => {
1446 console.error('Subscriber getCode error because: ' + JSON.stringify(error));
1451 }).catch((error) => {
1452 console.error('Subscriber getData error because: ' + JSON.stringify(error));
1456 commonEvent.subscribe(mySubscriber, (error, commonEventData) => {
1457 console.error('err code: ' + JSON.stringify(error));
1467 commonEvent.unsubscribe(mySubscriber, (error) => {
1468 if (error.code) {
1469 console.error(`unsubscribe failed, code is ${err.code}`);
1474 }).catch((error) => {
[all …]
/test/xts/acts/security/security_huks_reformed_test/huks_hmac_callback_BasicTest/src/main/js/test/HMAC/
DSecurityHuksHmacBasicCallbackJsunit.test.js29 huks.generateKeyItem(srcKeyAlies, HuksOptions, function (error, data) { argument
30 if (error) {
31 reject(error);
36 } catch (error) {
45 huks.initSession(srcKeyAlies, HuksOptions, function (error, data) { argument
46 if (error) {
47 reject(error);
52 } catch (error) {
61 huks.updateSession(handle, HuksOptions, function (error, data) { argument
62 if (error) {
[all …]
/test/xts/acts/msdp/device_status/src/main/js/test/
Ddevice_status_unittest.test.js47 } catch (error) {
48 console.error('error Log' + error);
55 } catch (error) {
56 console.error('error=' + error);
66 } catch (error) {
67 console.error('error=' + error);
85 } catch (error) {
86 console.error('error Log' + error);
93 } catch (error) {
94 console.error('error=' + error);
[all …]
/test/xts/acts/security/security_huks_reformed_test/huks_cipher_callback_BasicTest/src/main/js/test/Cipher/
DSecurityHuksRSABasicCallbackJsunit.test.js52 .catch(error => {
53 … console.error(`callback: generateKeyItem failed, code: ${error.code}, msg: ${error.message}`);
56 } catch (error) {
57 …console.error(`callback: generateKeyItem input arg invalid, code: ${error.code}, msg: ${error.mess…
65 huks.generateKeyItem(keyAlias, huksOptions, function (error, data) { argument
66 if (error) {
67 reject(error);
72 } catch (error) {
86 .catch(error => {
87 console.error(`callback: exportKeyItem failed, code: ${error.code}, msg: ${error.message}`);
[all …]

12345678910>>...173