提交 cae07f31 编写于 作者: 1 15829070344

用例覆盖大小写修改

Signed-off-by: N15829070344 <hehaitao5@huawei.com>
上级 858ce2d4
......@@ -2494,6 +2494,25 @@ describe('ActsAccountOAuthToken', function () {
appAccountManager.getAuthenticatorInfo(OWNERSELF,(err,databack)=>{
console.debug("====>ActsAccountOAuthToken_9500 getAuthenticatorInfo err:" + JSON.stringify(err));
expect(err.code!=0).assertEqual(true);
except(account.ResultCode.SUCCESS).assertEqual(0);
expect(account.ResultCode.ERROR_ACCOUNT_NOT_EXIST).assertEqual(10001);
expect(account.ResultCode.ERROR_APP_ACCOUNT_SERVICE_EXCEPTION).assertEqual(10002);
expect(account.ResultCode.ERROR_INVALID_PASSWORD).assertEqual(10003);
expect(account.ResultCode.ERROR_INVALID_REQUEST).assertEqual(10004);
expect(account.ResultCode.ERROR_INVALID_RESPONSE).assertEqual(10005);
expect(account.ResultCode.ERROR_NETWORK_EXCEPTION).assertEqual(10006);
expect(account.ResultCode.ERROR_OAUTH_AUTHENTICATOR_NOT_EXIST).assertEqual(10007);
expect(account.ResultCode.ERROR_OAUTH_CANCELED).assertEqual(10008);
expect(account.ResultCode.ERROR_OAUTH_LIST_TOO_LARGE).assertEqual(10009);
expect(account.ResultCode.ERROR_OAUTH_SERVICE_BUSY).assertEqual(10010);
expect(account.ResultCode.ERROR_OAUTH_SERVICE_EXCEPTION).assertEqual(10011);
expect(account.ResultCode.ERROR_OAUTH_SESSION_NOT_EXIST).assertEqual(10012);
expect(account.ResultCode.ERROR_OAUTH_TIMEOUT).assertEqual(10013);
expect(account.ResultCode.ERROR_OAUTH_TOKEN_NOT_EXIST).assertEqual(10014);
expect(account.ResultCode.ERROR_OAUTH_TOKEN_TOO_MANY).assertEqual(10015);
expect(account.ResultCode.ERROR_OAUTH_UNSUPPORT_ACTION).assertEqual(10016);
expect(account.ResultCode.ERROR_OAUTH_UNSUPPORT_AUTH_TYPE).assertEqual(10017);
expect(account.ResultCode.ERROR_PERMISSION_DENIED).assertEqual(10018);
done();
});
});
......@@ -2504,6 +2523,16 @@ describe('ActsAccountOAuthToken', function () {
appAccountManager.getAuthenticatorInfo("",(err,databack)=>{
console.debug("====>ActsAccountOAuthToken_9600 getAuthenticatorInfo err:" + JSON.stringify(err));
expect(err.code!=0).assertEqual(true);
expect(account.Constants.ACTION_ADD_ACCOUNT_IMPLICITLY).assertEqual('addAccountImplicitly');
expect(account.Constants.ACTION_AUTHENTICATE).assertEqual('authenticate');
expect(account.Constants.KEY_NAME).assertEqual('name');
expect(account.Constants.KEY_OWNER).assertEqual('owner');
expect(account.Constants.KEY_TOKEN).assertEqual('token');
expect(account.Constants.KEY_AUTHTYPE).assertEqual('authType');
expect(account.Constants.KEY_SESSION_ID).assertEqual('sessionId');
expect(account.Constants.KEY_CALLER_PID).assertEqual('callerPid');
expect(account.Constants.KEY_CALLER_UID).assertEqual('callerUid');
expect(account.Constants.KEY_CALLER_BUNDLE_NAME).assertEqual('callerBundleName');
done();
});
});
......@@ -3337,6 +3366,8 @@ describe('ActsAccountOAuthToken', function () {
console.debug("====>ActsAccountOAuthToken_13200 getAuthenticatorInfo err:" + JSON.stringify(err));
console.debug("====>ActsAccountOAuthToken_13200 getAuthenticatorInfo dataInfo:" + JSON.stringify(dataInfo));
expect(err.code).assertEqual(0);
expect(isNaN(dataInfo.iconId)).assertFalse();
expect(isNaN(dataInfo.labelId)).assertFalse();
done();
});
});
......
......@@ -13,7 +13,7 @@
* limitations under the License.
*/
import account from '@ohos.account.appAccount'
import featureAbility from '@ohos.ability.featureability'
import featureAbility from '@ohos.ability.featureAbility'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
const TIMEOUT = 2000;
......
......@@ -13,7 +13,7 @@
* limitations under the License.
*/
import account from '@ohos.account.appAccount'
import featureAbility from '@ohos.ability.featureability'
import featureAbility from '@ohos.ability.featureAbility'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
const TIMEOUT = 2000;
......
......@@ -13,7 +13,7 @@
* limitations under the License.
*/
import account from '@ohos.account.appAccount'
import featureAbility from '@ohos.ability.featureability'
import featureAbility from '@ohos.ability.featureAbility'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
const TIMEOUT = 5000;
......
......@@ -13,7 +13,7 @@
* limitations under the License.
*/
import account from '@ohos.account.appAccount'
import featureAbility from '@ohos.ability.featureability'
import featureAbility from '@ohos.ability.featureAbility'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
......
......@@ -13,7 +13,7 @@
* limitations under the License.
*/
import account from '@ohos.account.appAccount'
import commonevent from '@ohos.commonevent'
import commonevent from '@ohos.commonEvent'
const ACCOUNT_TEST_ONOFF_EXTRA = 1
const ACCOUNT_TEST_ONOFF_ASSOCIATEDDATA = 2
......
......@@ -17,7 +17,7 @@ import bundle from '@ohos.bundle'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
const ERR_OS_ACCOUNT_SERVICE_MANAGER_BAD_UID_ERR = 4653057;
describe('ActsOsAccountThirdPartyTest_third_1', function () {
describe('ActsOsAccountThirdPartyTest_third_2', function () {
/*
* @tc.number : ActsOsAccountGetIdFormUid_0100
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册