未验证 提交 7c34dfbf 编写于 作者: Z zhongqihong 提交者: Gitee

Modifying duplicate use case names

修改重复用例名
Signed-off-by: Nzhongqihong <zhongqihong2@huawei.com>
上级 cf229eff
...@@ -20,6 +20,7 @@ import ndkTest from 'libImagePixelMapNDKTest.so' ...@@ -20,6 +20,7 @@ import ndkTest from 'libImagePixelMapNDKTest.so'
export default function ImagePixelMapNDKTest() { export default function ImagePixelMapNDKTest() {
describe('ImagePixelMapNDKTest', function () { describe('ImagePixelMapNDKTest', function () {
let globalpixelmap;
const RESULT_SUCCESS = 0; const RESULT_SUCCESS = 0;
const BYTESNUMBER = 16; const BYTESNUMBER = 16;
function logger(caseName) { function logger(caseName) {
...@@ -57,7 +58,17 @@ export default function ImagePixelMapNDKTest() { ...@@ -57,7 +58,17 @@ export default function ImagePixelMapNDKTest() {
beforeEach(function () { console.info('beforeEach case'); }) beforeEach(function () { console.info('beforeEach case'); })
afterEach(function () { console.info('afterEach case'); }) afterEach(async function () {
if (globalpixelmap != undefined) {
console.info('globalpixelmap release start');
try {
await globalpixelmap.release();
} catch (error) {
console.info('globalpixelmap release fail');
}
}
console.info('afterEach case');
})
afterAll(function () { console.info('afterAll case'); }) afterAll(function () { console.info('afterAll case'); })
...@@ -100,6 +111,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -100,6 +111,7 @@ export default function ImagePixelMapNDKTest() {
done(); done();
return; return;
} }
globalpixelmap = pixelmap;
let testFunction1 = functionTest(log, res, pixelmap); let testFunction1 = functionTest(log, res, pixelmap);
testFunction1.test(pixelMapInterface, testFunction1.test(pixelMapInterface,
(value) => { (value) => {
...@@ -125,6 +137,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -125,6 +137,7 @@ export default function ImagePixelMapNDKTest() {
done(); done();
return; return;
} }
globalpixelmap = pixelmap;
let testFunction1 = functionTest(log, res, pixelmap); let testFunction1 = functionTest(log, res, pixelmap);
testFunction1.test(pixelMapInterface, testFunction1.test(pixelMapInterface,
(value) => { (value) => {
...@@ -156,6 +169,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -156,6 +169,7 @@ export default function ImagePixelMapNDKTest() {
if (pixelmap == undefined) { if (pixelmap == undefined) {
return; return;
} }
globalpixelmap = pixelmap;
expect(true).assertTrue(); expect(true).assertTrue();
done(); done();
} catch (error) { } catch (error) {
...@@ -405,7 +419,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -405,7 +419,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0100 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0100
* @tc.name : setAlphaAble * @tc.name : setAlphaAble_1
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.setAlphaAble * : 2.setAlphaAble
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -419,7 +433,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -419,7 +433,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0200 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0200
* @tc.name : setAlphaAble * @tc.name : setAlphaAble_2
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.setAlphaAble * : 2.setAlphaAble
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -433,7 +447,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -433,7 +447,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0300 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0300
* @tc.name : setAlphaAble * @tc.name : setAlphaAble_3
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.setAlphaAble * : 2.setAlphaAble
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -448,7 +462,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -448,7 +462,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0400 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0400
* @tc.name : setDensity * @tc.name : setDensity_1
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.setDensity * : 2.setDensity
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -462,7 +476,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -462,7 +476,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0500 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0500
* @tc.name : setDensity * @tc.name : setDensity_2
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.setDensity * : 2.setDensity
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -477,7 +491,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -477,7 +491,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0600 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0600
* @tc.name : setDensity * @tc.name : setDensity_3
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.setDensity * : 2.setDensity
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -491,7 +505,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -491,7 +505,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0700 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0700
* @tc.name : setOpacity * @tc.name : setOpacity_1
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.setOpacity * : 2.setOpacity
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -505,7 +519,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -505,7 +519,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0800 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0800
* @tc.name : setOpacity * @tc.name : setOpacity_2
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.setOpacity * : 2.setOpacity
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -519,7 +533,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -519,7 +533,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0900 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_0900
* @tc.name : setOpacity * @tc.name : setOpacity_3
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.setOpacity * : 2.setOpacity
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -534,7 +548,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -534,7 +548,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1000 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1000
* @tc.name : scale * @tc.name : scale_1
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.scale * : 2.scale
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -549,7 +563,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -549,7 +563,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1100 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1100
* @tc.name : scale * @tc.name : scale_2
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.scale * : 2.scale
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -563,7 +577,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -563,7 +577,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1200 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1200
* @tc.name : scale * @tc.name : scale_3
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.scale * : 2.scale
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -577,7 +591,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -577,7 +591,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1300 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1300
* @tc.name : translate * @tc.name : translate_1
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.translate * : 2.translate
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -592,7 +606,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -592,7 +606,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1400 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1400
* @tc.name : translate * @tc.name : translate_2
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.translate * : 2.translate
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -606,7 +620,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -606,7 +620,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1500 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1500
* @tc.name : translate * @tc.name : translate_3
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.translate * : 2.translate
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -620,7 +634,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -620,7 +634,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1600 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1600
* @tc.name : rotate * @tc.name : rotate_1
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.rotate * : 2.rotate
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -634,7 +648,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -634,7 +648,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1700 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1700
* @tc.name : rotate * @tc.name : rotate_2
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.rotate * : 2.rotate
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -648,7 +662,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -648,7 +662,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1800 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1800
* @tc.name : rotate * @tc.name : rotate_3
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.rotate * : 2.rotate
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -662,7 +676,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -662,7 +676,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1900 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_1900
* @tc.name : flip * @tc.name : flip_1
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.flip * : 2.flip
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -676,7 +690,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -676,7 +690,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_2000 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_2000
* @tc.name : flip * @tc.name : flip_2
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.flip * : 2.flip
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -690,7 +704,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -690,7 +704,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_2100 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_2100
* @tc.name : flip * @tc.name : flip_3
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.flip * : 2.flip
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -704,7 +718,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -704,7 +718,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_2200 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_2200
* @tc.name : crop * @tc.name : crop_1
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.crop * : 2.crop
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -718,7 +732,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -718,7 +732,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_2300 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_2300
* @tc.name : crop * @tc.name : crop_2
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.crop * : 2.crop
* @tc.size : MEDIUM * @tc.size : MEDIUM
...@@ -733,7 +747,7 @@ export default function ImagePixelMapNDKTest() { ...@@ -733,7 +747,7 @@ export default function ImagePixelMapNDKTest() {
/** /**
* @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_2400 * @tc.number : SUB_GRAPHIC_IMAGE_PIXELMAPNDK_ERR_2400
* @tc.name : crop * @tc.name : crop_3
* @tc.desc : 1.createPixelMap * @tc.desc : 1.createPixelMap
* : 2.crop * : 2.crop
* @tc.size : MEDIUM * @tc.size : MEDIUM
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册