未验证 提交 154bcac7 编写于 作者: O openharmony_ci 提交者: Gitee

!8973 webGL重复用例整改

Merge pull request !8973 from 李西腾/master
......@@ -1445,14 +1445,14 @@ export default function webgl1Test_webgl6() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0546
* @tc.name testCompressedTexImage3D_01
* @tc.name testCompressedTexImage3D_01_1
* @tc.desc Test compressedTexImage3D.
*/
it('testCompressedTexImage3D_01', 0, async function (done) {
it('testCompressedTexImage3D_01_1', 0, async function (done) {
try {
console.info('jsWebGL testCompressedTexImage3D_01 test start ...66');
console.info('jsWebGL testCompressedTexImage3D_01 test start ...' + JSON.stringify(gl));
console.info('jsWebGL testCompressedTexImage3D_01_1 test start ...66');
console.info('jsWebGL testCompressedTexImage3D_01_1 test start ...' + JSON.stringify(gl));
gl2.compressedTexImage3D(gl.TEXTURE_3D, 0, 0x83F0, 512, 512, 512, 0, gl2
.PIXEL_UNPACK_BUFFER, 0);
const compressedTexImage3DError = gl.getError();
......@@ -1461,21 +1461,21 @@ export default function webgl1Test_webgl6() {
done();
} catch (e) {
console.log("testCompressedTexImage3D_01 has failed for " + e)
console.log("testCompressedTexImage3D_01_1 has failed for " + e)
expect(null).assertFail()
}
})
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0547
* @tc.name testCompressedTexImage3D_02
* @tc.name testCompressedTexImage3D_01_2
* @tc.desc Test compressedTexImage3D.
*/
it('testCompressedTexImage3D_02', 0, async function (done) {
it('testCompressedTexImage3D_01_2', 0, async function (done) {
try {
console.info('jsWebGL testCompressedTexImage3D_02 test start ...66');
console.info('jsWebGL testCompressedTexImage3D_02 test start ...' + JSON.stringify(gl));
console.info('jsWebGL testCompressedTexImage3D_01_2 test start ...66');
console.info('jsWebGL testCompressedTexImage3D_01_2 test start ...' + JSON.stringify(gl));
const buffer = new ArrayBuffer(8);
gl2.compressedTexImage3D(gl.TEXTURE_3D, 0, 0x83F0, 512, 512, 512, 0, buffer, 0, 0);
const compressedTexImage3DError = gl.getError();
......@@ -1484,7 +1484,7 @@ export default function webgl1Test_webgl6() {
done();
} catch (e) {
console.log("testCompressedTexImage3D_02 has failed for " + e)
console.log("testCompressedTexImage3D_01_2 has failed for " + e)
expect(null).assertFail()
}
})
......
......@@ -2069,10 +2069,10 @@ export default function webgl1Test_webgl8() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0784
* @tc.name webgl_test_framebufferTexture2D25
* @tc.name webgl_test_framebufferTexture2D27
* @tc.desc Test framebufferTexture2D.
*/
it('webgl_test_framebufferTexture2D25', 0, async function (done) {
it('webgl_test_framebufferTexture2D27', 0, async function (done) {
console.info("webgltest into framebufferTexture2D");
const texture = gl.createTexture();
......
......@@ -977,12 +977,12 @@ export default function webgl1Test_webgl10() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0948
* @tc.name testInvalidateFramebuffer_1_01
* @tc.name testInvalidateFramebuffer_1_07
* @tc.desc Test invalidateFramebuffer.
*/
it('testInvalidateFramebuffer_1_01', 0, async function (done) {
it('testInvalidateFramebuffer_1_07', 0, async function (done) {
console.info('jsWebGL testInvalidateFramebuffer_1_01 test start ...66');
console.info('jsWebGL testInvalidateFramebuffer_1_07 test start ...66');
gl2.invalidateFramebuffer(gl.READ_FRAMEBUFFER,
[gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1]);
const invalidateFramebufferError = gl.getError();
......
......@@ -354,10 +354,10 @@ export default function webgl1Test_webgl11() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_1005
* @tc.name testBufferData__3
* @tc.name testBufferData__5
* @tc.desc Test bufferData.
*/
it('testBufferData__3', 0, async function (done) {
it('testBufferData__5', 0, async function (done) {
console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2));
const buffer = gl.createBuffer();
......
......@@ -1328,10 +1328,10 @@ export default function webgl1Test_webgl12() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_1172
* @tc.name testTexImage2D_1_16
* @tc.name testTexImage2D_1_17
* @tc.desc Test texImage2D.
*/
it('testTexImage2D_1_16', 0, async function (done) {
it('testTexImage2D_1_17', 0, async function (done) {
console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2));
var buffer = new ArrayBuffer(8);
......
......@@ -603,7 +603,7 @@ export default function webgl1Test_webgl13() {
* @tc.name testTexImage2D_11_1
* @tc.desc Test texImage2D.
*/
it('testTexImage2D_11_1', 0, async function (done) {
it('testTexImage2D_10_2', 0, async function (done) {
console.info('jsWebGL testTexImage2D test start ...66');
console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl));
......
......@@ -824,10 +824,10 @@ export default function webgl1Test_webgl14() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_1328
* @tc.name webgl_test_clearBufferfv_22
* @tc.name webgl_test_clearBufferfv_22_1
* @tc.desc Test clearBufferfv.
*/
it('webgl_test_clearBufferfv_22', 0, async function (done) {
it('webgl_test_clearBufferfv_22_1', 0, async function (done) {
console.info("webgltest into clearBufferfv");
......@@ -885,10 +885,10 @@ export default function webgl1Test_webgl14() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_1331
* @tc.name webgl_test_clearBufferfv_22
* @tc.name webgl_test_clearBufferfv_22_2
* @tc.desc Test clearBufferfv.
*/
it('webgl_test_clearBufferfv_22', 0, async function (done) {
it('webgl_test_clearBufferfv_22_2', 0, async function (done) {
console.info("webgltest into clearBufferfv");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册