diff --git a/commonlibrary/ets_utils/threadWorker_lib_standard/entry/src/main/ets/test/ThreadWorker.test.js b/commonlibrary/ets_utils/threadWorker_lib_standard/entry/src/main/ets/test/ThreadWorker.test.js index e320899a07190dedcc63cfaa5d097ff148229d83..f55dca240b91fcbfbd0d339f8947334374c89bef 100644 --- a/commonlibrary/ets_utils/threadWorker_lib_standard/entry/src/main/ets/test/ThreadWorker.test.js +++ b/commonlibrary/ets_utils/threadWorker_lib_standard/entry/src/main/ets/test/ThreadWorker.test.js @@ -1542,10 +1542,10 @@ describe('threadWorkerTest', function () { // check worker removeAllListener function is ok /** - * @tc.name: threadWorker_removeListener_test_003 + * @tc.name: threadWorker_removeListener_test_004 * @tc.desc: Removes an event defined for the worker when throw error. */ - it('threadWorker_removeListener_test_003', 0, async function (done) { + it('threadWorker_removeListener_test_004', 0, async function (done) { let ss = new worker.ThreadWorker("entry/ets/workers/newworker.js") let zhangSanTimes = 0 @@ -1572,10 +1572,10 @@ describe('threadWorkerTest', function () { // check worker removeAllListener function is ok /** - * @tc.name: threadWorker_removeListener_test_004 + * @tc.name: threadWorker_removeListener_test_005 * @tc.desc: Removes an event defined for the worker when throw error. */ - it('threadWorker_removeListener_test_004', 0, async function (done) { + it('threadWorker_removeListener_test_005', 0, async function (done) { let ss = new worker.ThreadWorker("entry/ets/workers/newworker.js") let zhangSanTimes = 0 @@ -1602,10 +1602,10 @@ describe('threadWorkerTest', function () { // check worker removeAllListener function is ok /** - * @tc.name: threadWorker_removeListener_test_005 + * @tc.name: threadWorker_removeListener_test_006 * @tc.desc: Removes an event defined for the worker when throw error. */ - it('threadWorker_removeListener_test_005', 0, async function (done) { + it('threadWorker_removeListener_test_006', 0, async function (done) { let ss = new worker.ThreadWorker("entry/ets/workers/newworker.js") let zhangSanTimes = 0 @@ -1632,10 +1632,10 @@ describe('threadWorkerTest', function () { // check worker removeAllListener function is ok /** - * @tc.name: threadWorker_removeListener_test_006 + * @tc.name: threadWorker_removeListener_test_007 * @tc.desc: Removes an event defined for the worker when throw error. */ - it('threadWorker_removeListener_test_006', 0, async function (done) { + it('threadWorker_removeListener_test_007', 0, async function (done) { let ss = new worker.ThreadWorker("entry/ets/workers/newworker.js") let zhangSanTimes = 0 diff --git a/commonlibrary/ets_utils/url_lib_standard/src/main/js/test/url.test.js b/commonlibrary/ets_utils/url_lib_standard/src/main/js/test/url.test.js index 8954600640cae236d87ceae58b3778a97c321325..5f13b6e53be387db1e3fd9229d5109b198fb37a6 100644 --- a/commonlibrary/ets_utils/url_lib_standard/src/main/js/test/url.test.js +++ b/commonlibrary/ets_utils/url_lib_standard/src/main/js/test/url.test.js @@ -544,7 +544,7 @@ describe('UrlFunTest', function () { * @tc.name: testParamsGet006 * @tc.desc: get throw BusinessError: Parameter error. */ - it('testParamsGet005', 0, function () { + it('testParamsGet006', 0, function () { try{ let params = new Url.URLParams("key1=value1&key2=value2") params.append("jss","JL") diff --git a/commonlibrary/ets_utils/util2_lib_standard/src/main/js/test/util.test.js b/commonlibrary/ets_utils/util2_lib_standard/src/main/js/test/util.test.js index 13cb2b13aea3bbffd11b79972dd9c3c711eb1ba0..f83983d218bdc6b2ca9c44e7ff51103026177472 100644 --- a/commonlibrary/ets_utils/util2_lib_standard/src/main/js/test/util.test.js +++ b/commonlibrary/ets_utils/util2_lib_standard/src/main/js/test/util.test.js @@ -4210,11 +4210,11 @@ describe('Base64HelperTest', function () { //base64 EncodeAsync test /** - * @tc.name: test_encodeSync_base64_001 + * @tc.name: test_encodeAsync_base64_001 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. */ - it('test_encodeSync_base64_001', 0, async function () { + it('test_encodeAsync_base64_001', 0, async function () { var that = await new util.Base64Helper(); var array = new Uint8Array([115,49,51]); var rarray = new Uint8Array([99,122,69,122]); @@ -4226,11 +4226,11 @@ describe('Base64HelperTest', function () { }) /** - * @tc.name: test_encodeSync_base64_002 + * @tc.name: test_encodeAsync_base64_002 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. */ - it('test_encodeSync_base64_002', 0, async function () { + it('test_encodeAsync_base64_002', 0, async function () { var that = new util.Base64Helper() var array = new Uint8Array([66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115]); var rarray = new Uint8Array([81,109,70,122,90,84,89,48,73,69,53,118,90,71,85,117,97,110,77,61]); @@ -4242,11 +4242,11 @@ describe('Base64HelperTest', function () { }) /** - * @tc.name: test_encodeSync_base64_003 + * @tc.name: test_encodeAsync_base64_003 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. */ - it('test_encodeSync_base64_003', 0, async function () { + it('test_encodeAsync_base64_003', 0, async function () { var that = new util.Base64Helper() var array = new Uint8Array([66,97,115,101,54,52,32,69,110,99,111,100,105,110,103,32,105,110,32, 78,111,100,101,46,106,115]); @@ -4260,11 +4260,11 @@ describe('Base64HelperTest', function () { }) /** - * @tc.name: test_encodeSync_base64_004 + * @tc.name: test_encodeAsync_base64_004 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. */ - it('test_encodeSync_base64_004', 0, async function () { + it('test_encodeAsync_base64_004', 0, async function () { var that = new util.Base64Helper() var array = new Uint8Array([168, 174, 155, 255]); var rarray = new Uint8Array([113,75,54,98,47,119,61,61]); @@ -4276,11 +4276,11 @@ describe('Base64HelperTest', function () { }) /** - * @tc.name: test_encodeSync_base64_005 + * @tc.name: test_encodeAsync_base64_005 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. */ - it('test_encodeSync_base64_005', 0, async function () { + it('test_encodeAsync_base64_005', 0, async function () { var that = new util.Base64Helper() var array = new Uint8Array([66, 97, 115, 101, 54, 52]); var rarray = new Uint8Array([81, 109, 70, 122, 90, 84, 89, 48]); diff --git a/commonlibrary/ets_utils/util_lib_standard/src/main/js/test/util.test.js b/commonlibrary/ets_utils/util_lib_standard/src/main/js/test/util.test.js index 2bdcd73b7d95105d8f8c90505734a4d68cb5e8ff..22c22901e8034d471793fd133c8b4b5aa56f62fb 100644 --- a/commonlibrary/ets_utils/util_lib_standard/src/main/js/test/util.test.js +++ b/commonlibrary/ets_utils/util_lib_standard/src/main/js/test/util.test.js @@ -2217,11 +2217,11 @@ describe('Base64Test', function () { //base64 EncodeAsync test /** - * @tc.name: test_encodeSync_base64_001 + * @tc.name: test_encodeAsync_base64_001 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. */ - it('test_encodeSync_base64_001', 0, async function () { + it('test_encodeAsync_base64_001', 0, async function () { var that = await new util.Base64(); var array = new Uint8Array([115,49,51]); var rarray = new Uint8Array([99,122,69,122]); @@ -2233,11 +2233,11 @@ describe('Base64Test', function () { }) /** - * @tc.name: test_encodeSync_base64_002 + * @tc.name: test_encodeAsync_base64_002 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. */ - it('test_encodeSync_base64_002', 0, async function () { + it('test_encodeAsync_base64_002', 0, async function () { var that = new util.Base64() var array = new Uint8Array([66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115]); var rarray = new Uint8Array([81,109,70,122,90,84,89,48,73,69,53,118,90,71,85,117,97,110,77,61]); @@ -2249,11 +2249,11 @@ describe('Base64Test', function () { }) /** - * @tc.name: test_encodeSync_base64_003 + * @tc.name: test_encodeAsync_base64_003 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. */ - it('test_encodeSync_base64_003', 0, async function () { + it('test_encodeAsync_base64_003', 0, async function () { var that = new util.Base64() var array = new Uint8Array([66,97,115,101,54,52,32,69,110,99,111,100,105,110,103,32,105,110,32, 78,111,100,101,46,106,115]); @@ -2267,11 +2267,11 @@ describe('Base64Test', function () { }) /** - * @tc.name: test_encodeSync_base64_004 + * @tc.name: test_encodeAsync_base64_004 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. */ - it('test_encodeSync_base64_004', 0, async function () { + it('test_encodeAsync_base64_004', 0, async function () { var that = new util.Base64() var array = new Uint8Array([168, 174, 155, 255]); var rarray = new Uint8Array([113,75,54,98,47,119,61,61]); @@ -2283,11 +2283,11 @@ describe('Base64Test', function () { }) /** - * @tc.name: test_encodeSync_base64_005 + * @tc.name: test_encodeAsync_base64_005 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. */ - it('test_encodeSync_base64_005', 0, async function () { + it('test_encodeAsync_base64_005', 0, async function () { var that = new util.Base64() var array = new Uint8Array([66, 97, 115, 101, 54, 52]); var rarray = new Uint8Array([81, 109, 70, 122, 90, 84, 89, 48]); @@ -5223,40 +5223,40 @@ describe('TypesTest', function() { }) /** - * @tc.name: testIsBigUint64Array002 + * @tc.name: testIsBigUint64Array003 * @tc.desc: Check whether the entered value is of biguint64array array array type. */ - it('testIsBigUint64Array002', 0, function() { + it('testIsBigUint64Array003', 0, function() { var proc = new util.types(); var result = proc.isBigUint64Array(new Float64Array([])); expect(result).assertEqual(false); }) /** - * @tc.name: testIsBigUint64Array003 + * @tc.name: testIsBigUint64Array004 * @tc.desc: Check whether the entered value is of biguint64array array array type. */ - it('testIsBigUint64Array003', 0, function() { + it('testIsBigUint64Array004', 0, function() { var proc = new util.types(); var result = proc.isBigUint64Array(new Uint8Array([])); expect(result).assertEqual(false); }) /** - * @tc.name: testIsBigUint64Array004 + * @tc.name: testIsBigUint64Array005 * @tc.desc: Check whether the entered value is of biguint64array array array type. */ - it('testIsBigUint64Array004', 0, function() { + it('testIsBigUint64Array005', 0, function() { var proc = new util.types(); var result = proc.isBigUint64Array(new BigInt64Array([])); expect(result).assertEqual(false); }) /** - * @tc.name: testIsBigUint64Array005 + * @tc.name: testIsBigUint64Array006 * @tc.desc: Check whether the entered value is of biguint64array array array type. */ - it('testIsBigUint64Array005', 0, function() { + it('testIsBigUint64Array006', 0, function() { var proc = new util.types(); var result = proc.isBigUint64Array(new Int8Array([])); expect(result).assertEqual(false);