提交 260e87b3 编写于 作者: Z zWX1234017

更改ets_utils部分模块xts用例名称重复问题

https://gitee.com/openharmony/xts_acts/issues/I7D6DOSigned-off-by: NzWX1234017 <zhaoduwei3@huawei.com>
上级 03271d6f
......@@ -1543,10 +1543,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
......@@ -1573,10 +1573,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
......@@ -1603,10 +1603,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
......@@ -1633,10 +1633,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
......
......@@ -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")
......
......@@ -4179,11 +4179,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]);
......@@ -4195,11 +4195,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]);
......@@ -4211,11 +4211,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]);
......@@ -4229,11 +4229,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]);
......@@ -4245,11 +4245,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]);
......
......@@ -2088,11 +2088,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]);
......@@ -2104,11 +2104,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]);
......@@ -2120,11 +2120,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]);
......@@ -2138,11 +2138,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]);
......@@ -2154,11 +2154,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]);
......@@ -5059,40 +5059,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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册