diff --git a/inputmethod/InputMethodTest_Stage/entry/src/main/ets/test/inputMethodStageJSUnit.ets b/inputmethod/InputMethodTest_Stage/entry/src/main/ets/test/inputMethodStageJSUnit.ets index 0829a0ac5aebade954001103c0cfc5b2ae3c0837..866afd9402cf3865c9b2d9ff743d78a84e8eb89e 100644 --- a/inputmethod/InputMethodTest_Stage/entry/src/main/ets/test/inputMethodStageJSUnit.ets +++ b/inputmethod/InputMethodTest_Stage/entry/src/main/ets/test/inputMethodStageJSUnit.ets @@ -607,160 +607,5 @@ export default function inputMethodStageJSUnit() { }) }); - /* - * @tc.number inputMethod_test_EXCEPTION_PERMISSION_001 - * @tc.name Errorcode 201. The permissions check fails. - * @tc.desc Function test - * @tc.level 2 - */ - it('inputMethod_test_EXCEPTION_PERMISSION_001', 0, async function (done) { - let keyType = inputMethod.EXCEPTION_PERMISSION; - console.info("====>inputMethod_test_EXCEPTION_PERMISSION_001 result:" + keyType); - expect(keyType).assertEqual(201); - done(); - }); - - /* - * @tc.number inputMethod_test_EXCEPTION_PARAMCHECK_002 - * @tc.name Errorcode 401. The parameters check fails. - * @tc.desc Function test - * @tc.level 2 - */ - it('inputMethod_test_EXCEPTION_PARAMCHECK_002', 0, async function (done) { - let keyType = inputMethod.EXCEPTION_PARAMCHECK; - console.info("====>inputMethod_test_EXCEPTION_PARAMCHECK_002 result:" + keyType); - expect(keyType).assertEqual(401); - done(); - }); - - /* - * @tc.number inputMethod_test_EXCEPTION_UNSUPPORTED_003 - * @tc.name Errorcode 801. Call unsupported api. - * @tc.desc Function test - * @tc.level 2 - */ - it('inputMethod_test_EXCEPTION_UNSUPPORTED_003', 0, async function (done) { - let keyType = inputMethod.EXCEPTION_UNSUPPORTED; - console.info("====>inputMethod_test_EXCEPTION_UNSUPPORTED_003 result:" + keyType); - expect(keyType).assertEqual(801); - done(); - }); - - /* - * @tc.number inputMethod_test_EXCEPTION_PACKAGEMANAGER_004 - * @tc.name Errorcode 12800001. Package manager error. - * @tc.desc Function test - * @tc.level 2 - */ - it('inputMethod_test_EXCEPTION_PACKAGEMANAGER_004', 0, async function (done) { - let keyType = inputMethod.EXCEPTION_PACKAGEMANAGER; - console.info("====>inputMethod_test_EXCEPTION_PACKAGEMANAGER_004 result:" + keyType); - expect(keyType).assertEqual(12800001); - done(); - }); - - /* - * @tc.number inputMethod_test_EXCEPTION_IMENGINE_005 - * @tc.name Errorcode 12800002. Input method engine error. - * @tc.desc Function test - * @tc.level 2 - */ - it('inputMethod_test_EXCEPTION_IMENGINE_005', 0, async function (done) { - let keyType = inputMethod.EXCEPTION_IMENGINE; - console.info("====>inputMethod_test_EXCEPTION_IMENGINE_005 result:" + keyType); - expect(keyType).assertEqual(12800002); - done(); - }); - - /* - * @tc.number inputMethod_test_EXCEPTION_IMCLIENT_006 - * @tc.name Errorcode 12800003. Input method client error. - * @tc.desc Function test - * @tc.level 2 - */ - it('inputMethod_test_EXCEPTION_IMCLIENT_006', 0, async function (done) { - let keyType = inputMethod.EXCEPTION_IMCLIENT; - console.info("====>inputMethod_test_EXCEPTION_IMCLIENT_006 result:" + keyType); - expect(keyType).assertEqual(12800003); - done(); - }); - - /* - * @tc.number inputMethod_test_EXCEPTION_KEYEVENT_007 - * @tc.name Errorcode 12800004. Key event processing error. - * @tc.desc Function test - * @tc.level 2 - */ - it('inputMethod_test_EXCEPTION_KEYEVENT_007', 0, async function (done) { - let keyType = inputMethod.EXCEPTION_KEYEVENT; - console.info("====>inputMethod_test_EXCEPTION_KEYEVENT_007 result:" + keyType); - expect(keyType).assertEqual(12800004); - done(); - }); - - /* - * @tc.number inputMethod_test_EXCEPTION_CONFPERSIST_008 - * @tc.name Errorcode 12800005. Configuration persisting error. - * @tc.desc Function test - * @tc.level 2 - */ - it('inputMethod_test_EXCEPTION_CONFPERSIST_008', 0, async function (done) { - let keyType = inputMethod.EXCEPTION_CONFPERSIST; - console.info("====>inputMethod_test_EXCEPTION_CONFPERSIST_008 result:" + keyType); - expect(keyType).assertEqual(12800005); - done(); - }); - - /* - * @tc.number inputMethod_test_EXCEPTION_CONTROLLER_009 - * @tc.name Errorcode 12800006. Input method controller error. - * @tc.desc Function test - * @tc.level 2 - */ - it('inputMethod_test_EXCEPTION_CONTROLLER_009', 0, async function (done) { - let keyType = inputMethod.EXCEPTION_CONTROLLER; - console.info("====>inputMethod_test_EXCEPTION_CONTROLLER_009 result:" + keyType); - expect(keyType).assertEqual(12800006); - done(); - }); - - /* - * @tc.number inputMethod_test_EXCEPTION_SETTINGS_010 - * @tc.name Errorcode 12800007. Input method settings extension error. - * @tc.desc Function test - * @tc.level 2 - */ - it('inputMethod_test_EXCEPTION_SETTINGS_010', 0, async function (done) { - let keyType = inputMethod.EXCEPTION_SETTINGS; - console.info("====>inputMethod_test_EXCEPTION_SETTINGS_010 result:" + keyType); - expect(keyType).assertEqual(12800007); - done(); - }); - - /* - * @tc.number inputMethod_test_EXCEPTION_IMMS_011 - * @tc.name Errorcode 12800008. Input method manager service error. - * @tc.desc Function test - * @tc.level 2 - */ - it('inputMethod_test_EXCEPTION_IMMS_011', 0, async function (done) { - let keyType = inputMethod.EXCEPTION_IMMS; - console.info("====>inputMethod_test_EXCEPTION_IMMS_011 result:" + keyType); - expect(keyType).assertEqual(12800008); - done(); - }); - - /* - * @tc.number inputMethod_test_EXCEPTION_OTHERS_012 - * @tc.name Errorcode 12899999. Others error. - * @tc.desc Function test - * @tc.level 2 - */ - it('inputMethod_test_EXCEPTION_OTHERS_012', 0, async function (done) { - let keyType = inputMethod.EXCEPTION_OTHERS; - console.info("====>inputMethod_test_EXCEPTION_OTHERS_012 result:" + keyType); - expect(keyType).assertEqual(12899999); - done(); - }); }); };