未验证 提交 432e2016 编写于 作者: O openharmony_ci 提交者: Gitee

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

Merge pull request !9001 from 赵杜炜/master
......@@ -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
......
......@@ -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")
......
......@@ -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]);
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册