提交 531146ca 编写于 作者: L lixiteng

webGL重复用例整改

Signed-off-by: Nlixiteng <lixiteng@huawei.com>
上级 ef26c304
......@@ -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()
}
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册