未验证 提交 8f4b802c 编写于 作者: O openharmony_ci 提交者: Gitee

!8975 webGL重复用例整改-3.2-release

Merge pull request !8975 from 李西腾/OpenHarmony-3.2-Release
...@@ -1007,15 +1007,15 @@ describe('webgl1Test_webgl1', function() { ...@@ -1007,15 +1007,15 @@ describe('webgl1Test_webgl1', function() {
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0033 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0033
* @tc.name webgl_test_copyTexImage2D * @tc.name webgl_test_copyTexImage2D_01
* @tc.desc Test copyTexImage2D. * @tc.desc Test copyTexImage2D_01.
*/ */
it('webgl_test_copyTexImage2D', 0, async function(done) { it('webgl_test_copyTexImage2D_01', 0, async function(done) {
//initContext(); //initContext();
console.info("webgltest into copyTexImage2D"); console.info("webgltest into copyTexImage2D_01");
gl.copyTexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 0, 0, 512, 512, 0); gl.copyTexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 0, 0, 512, 512, 0);
let errorCode = gl.getError(); let errorCode = gl.getError();
console.info("webgltest copyTexImage2D getError: " + errorCode); console.info("webgltest copyTexImage2D_01 getError: " + errorCode);
expect(errorCode).assertEqual(gl.NO_ERROR); expect(errorCode).assertEqual(gl.NO_ERROR);
//deleteContext(); //deleteContext();
...@@ -1025,15 +1025,15 @@ describe('webgl1Test_webgl1', function() { ...@@ -1025,15 +1025,15 @@ describe('webgl1Test_webgl1', function() {
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0034 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0034
* @tc.name webgl_test_copyTexImage2D * @tc.name webgl_test_copyTexImage2D_02
* @tc.desc Test copyTexImage2D. * @tc.desc Test copyTexImage2D_02.
*/ */
it('webgl_test_copyTexImage2D', 0, async function(done) { it('webgl_test_copyTexImage2D_02', 0, async function(done) {
//initContext(); //initContext();
console.info("webgltest into copyTexImage2D"); console.info("webgltest into copyTexImage2D_02");
gl.copyTexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 0, 0, '512', 512, 0); gl.copyTexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 0, 0, '512', 512, 0);
let errorCode = gl.getError(); let errorCode = gl.getError();
console.info("webgltest copyTexImage2D getError: " + errorCode); console.info("webgltest copyTexImage2D_02 getError: " + errorCode);
expect(errorCode).assertEqual(gl.NO_ERROR); expect(errorCode).assertEqual(gl.NO_ERROR);
//deleteContext(); //deleteContext();
......
...@@ -1454,14 +1454,14 @@ describe('webgl1Test_webgl6', function() { ...@@ -1454,14 +1454,14 @@ describe('webgl1Test_webgl6', function() {
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0546 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0546
* @tc.name testCompressedTexImage3D_01 * @tc.name testCompressedTexImage3D_01_1
* @tc.desc Test compressedTexImage3D. * @tc.desc Test compressedTexImage3D.
*/ */
it('testCompressedTexImage3D_01', 0, async function(done) { it('testCompressedTexImage3D_01_1', 0, async function(done) {
//initContext(); //initContext();
try { try {
console.info('jsWebGL testCompressedTexImage3D_01 test start ...66'); console.info('jsWebGL testCompressedTexImage3D_01_1 test start ...66');
console.info('jsWebGL testCompressedTexImage3D_01 test start ...' + JSON.stringify(gl)); console.info('jsWebGL testCompressedTexImage3D_01_1 test start ...' + JSON.stringify(gl));
gl2.compressedTexImage3D(gl.TEXTURE_3D, 0, 0x83F0, 512, 512, 512, 0, gl2 gl2.compressedTexImage3D(gl.TEXTURE_3D, 0, 0x83F0, 512, 512, 512, 0, gl2
.PIXEL_UNPACK_BUFFER, 0); .PIXEL_UNPACK_BUFFER, 0);
const compressedTexImage3DError = gl.getError(); const compressedTexImage3DError = gl.getError();
...@@ -1470,21 +1470,21 @@ describe('webgl1Test_webgl6', function() { ...@@ -1470,21 +1470,21 @@ describe('webgl1Test_webgl6', function() {
//deleteContext(); //deleteContext();
done(); done();
} catch (e) { } catch (e) {
console.log("testCompressedTexImage3D_01 has failed for " + e) console.log("testCompressedTexImage3D_01_1 has failed for " + e)
expect(null).assertFail() expect(null).assertFail()
} }
}) })
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0547 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0547
* @tc.name testCompressedTexImage3D_02 * @tc.name testCompressedTexImage3D_01_2
* @tc.desc Test compressedTexImage3D. * @tc.desc Test compressedTexImage3D.
*/ */
it('testCompressedTexImage3D_02', 0, async function(done) { it('testCompressedTexImage3D_01_2', 0, async function(done) {
//initContext(); //initContext();
try { try {
console.info('jsWebGL testCompressedTexImage3D_02 test start ...66'); console.info('jsWebGL testCompressedTexImage3D_01_2 test start ...66');
console.info('jsWebGL testCompressedTexImage3D_02 test start ...' + JSON.stringify(gl)); console.info('jsWebGL testCompressedTexImage3D_01_2 test start ...' + JSON.stringify(gl));
const buffer = new ArrayBuffer(8); const buffer = new ArrayBuffer(8);
gl2.compressedTexImage3D(gl.TEXTURE_3D, 0, 0x83F0, 512, 512, 512, 0, buffer, 0, 0); gl2.compressedTexImage3D(gl.TEXTURE_3D, 0, 0x83F0, 512, 512, 512, 0, buffer, 0, 0);
const compressedTexImage3DError = gl.getError(); const compressedTexImage3DError = gl.getError();
...@@ -1493,7 +1493,7 @@ describe('webgl1Test_webgl6', function() { ...@@ -1493,7 +1493,7 @@ describe('webgl1Test_webgl6', function() {
//deleteContext(); //deleteContext();
done(); done();
} catch (e) { } catch (e) {
console.log("testCompressedTexImage3D_02 has failed for " + e) console.log("testCompressedTexImage3D_01_2 has failed for " + e)
expect(null).assertFail() expect(null).assertFail()
} }
}) })
......
...@@ -817,15 +817,15 @@ describe('webgl1Test_webgl8', function() { ...@@ -817,15 +817,15 @@ describe('webgl1Test_webgl8', function() {
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0728 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0728
* @tc.name webgl_test_activeTexture_2 * @tc.name webgl_test_activeTexture_01
* @tc.desc Test activeTexture. * @tc.desc Test activeTexture_01.
*/ */
it('webgl_test_activeTexture_1', 0, async function(done) { it('webgl_test_activeTexture_01', 0, async function(done) {
//initContext(); //initContext();
console.info("webgltest into activeTexture"); console.info("webgltest into activeTexture_01");
gl.activeTexture(gl.TEXTURE2); gl.activeTexture(gl.TEXTURE2);
const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE);
console.info("webgltest activeTexture --> getParameter: " + activeTextureParameter); console.info("webgltest activeTexture_01 --> getParameter: " + activeTextureParameter);
expect(activeTextureParameter).assertEqual(33986); expect(activeTextureParameter).assertEqual(33986);
//deleteContext(); //deleteContext();
done(); done();
...@@ -835,15 +835,15 @@ describe('webgl1Test_webgl8', function() { ...@@ -835,15 +835,15 @@ describe('webgl1Test_webgl8', function() {
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0729 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0729
* @tc.name webgl_test_activeTexture_3 * @tc.name webgl_test_activeTexture_02
* @tc.desc Test activeTexture. * @tc.desc Test activeTexture_02.
*/ */
it('webgl_test_activeTexture_1', 0, async function(done) { it('webgl_test_activeTexture_02', 0, async function(done) {
//initContext(); //initContext();
console.info("webgltest into activeTexture"); console.info("webgltest into activeTexture_02");
gl.activeTexture(gl.TEXTURE3); gl.activeTexture(gl.TEXTURE3);
const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE);
console.info("webgltest activeTexture --> getParameter: " + activeTextureParameter); console.info("webgltest activeTexture_02 --> getParameter: " + activeTextureParameter);
expect(activeTextureParameter).assertEqual(33987); expect(activeTextureParameter).assertEqual(33987);
//deleteContext(); //deleteContext();
done(); done();
...@@ -2098,10 +2098,10 @@ describe('webgl1Test_webgl8', function() { ...@@ -2098,10 +2098,10 @@ describe('webgl1Test_webgl8', function() {
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0784 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0784
* @tc.name webgl_test_framebufferTexture2D25 * @tc.name webgl_test_framebufferTexture2D27
* @tc.desc Test framebufferTexture2D. * @tc.desc Test framebufferTexture2D.
*/ */
it('webgl_test_framebufferTexture2D25', 0, async function(done) { it('webgl_test_framebufferTexture2D27', 0, async function(done) {
//initContext(); //initContext();
console.info("webgltest into framebufferTexture2D"); console.info("webgltest into framebufferTexture2D");
const texture = gl.createTexture(); const texture = gl.createTexture();
......
...@@ -985,12 +985,12 @@ describe('webgl1Test_webgl10', function() { ...@@ -985,12 +985,12 @@ describe('webgl1Test_webgl10', function() {
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0948 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0948
* @tc.name testInvalidateFramebuffer_1_01 * @tc.name testInvalidateFramebuffer_1_07
* @tc.desc Test invalidateFramebuffer. * @tc.desc Test invalidateFramebuffer.
*/ */
it('testInvalidateFramebuffer_1_01', 0, async function(done) { it('testInvalidateFramebuffer_1_07', 0, async function(done) {
//initContext(); //initContext();
console.info('jsWebGL testInvalidateFramebuffer_1_01 test start ...66'); console.info('jsWebGL testInvalidateFramebuffer_1_07 test start ...66');
gl2.invalidateFramebuffer(gl.READ_FRAMEBUFFER, gl2.invalidateFramebuffer(gl.READ_FRAMEBUFFER,
[gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1]); [gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1]);
const invalidateFramebufferError = gl.getError(); const invalidateFramebufferError = gl.getError();
...@@ -1694,206 +1694,206 @@ describe('webgl1Test_webgl10', function() { ...@@ -1694,206 +1694,206 @@ describe('webgl1Test_webgl10', function() {
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0980 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0980
* @tc.name testTexSubImage3D * @tc.name testTexSubImage3D_01
* @tc.desc Test texSubImage3D. * @tc.desc Test texSubImage3D_01.
*/ */
it('testTexSubImage3D', 0, async function(done) { it('testTexSubImage3D_01', 0, async function(done) {
//initContext(); //initContext();
try { try {
console.info('jsWebGL testTexSubImage3D test start ...66'); console.info('jsWebGL testTexSubImage3D_01 test start ...66');
console.info('jsWebGL testTexSubImage3D test start ...' + JSON.stringify(gl)); console.info('jsWebGL testTexSubImage3D_01 test start ...' + JSON.stringify(gl));
gl2.texSubImage3D(gl.TEXTURE_3D, 0, 0, 0, 0, 200, 200, 1, gl.RGB8UI, gl.UNSIGNED_BYTE, gl2.texSubImage3D(gl.TEXTURE_3D, 0, 0, 0, 0, 200, 200, 1, gl.RGB8UI, gl.UNSIGNED_BYTE,
1); 1);
const texSubImage3DError = gl.getError(); const texSubImage3DError = gl.getError();
console.info("texSubImage3DError: " + texSubImage3DError); console.info("texSubImage3D_01Error: " + texSubImage3DError);
expect(texSubImage3DError).assertEqual(0); expect(texSubImage3DError).assertEqual(0);
//deleteContext(); //deleteContext();
done(); done();
} catch (e) { } catch (e) {
console.log("testTexSubImage3D has failed for " + e) console.log("testTexSubImage3D_01 has failed for " + e)
expect(null).assertFail() expect(null).assertFail()
} }
}) })
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0981 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0981
* @tc.name testTexSubImage3D * @tc.name testTexSubImage3D_02
* @tc.desc Test texSubImage3D. * @tc.desc Test texSubImage3D_02.
*/ */
it('testTexSubImage3D', 0, async function(done) { it('testTexSubImage3D_02', 0, async function(done) {
//initContext(); //initContext();
try { try {
console.info('jsWebGL testTexSubImage3D test start ...66'); console.info('jsWebGL testTexSubImage3D_02 test start ...66');
console.info('jsWebGL testTexSubImage3D test start ...' + JSON.stringify(gl)); console.info('jsWebGL testTexSubImage3D_02 test start ...' + JSON.stringify(gl));
gl2.texSubImage3D(gl.TEXTURE_3D, 0, 0, 0, 0, 200, 200, 1, gl.R8, gl.UNSIGNED_BYTE, 1); gl2.texSubImage3D(gl.TEXTURE_3D, 0, 0, 0, 0, 200, 200, 1, gl.R8, gl.UNSIGNED_BYTE, 1);
const texSubImage3DError = gl.getError(); const texSubImage3DError = gl.getError();
console.info("texSubImage3DError: " + texSubImage3DError); console.info("texSubImage3D_02Error: " + texSubImage3DError);
expect(texSubImage3DError).assertEqual(0); expect(texSubImage3DError).assertEqual(0);
//deleteContext(); //deleteContext();
done(); done();
} catch (e) { } catch (e) {
console.log("testTexSubImage3D has failed for " + e) console.log("testTexSubImage3D_02 has failed for " + e)
expect(null).assertFail() expect(null).assertFail()
} }
}) })
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0982 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0982
* @tc.name testTexSubImage3D * @tc.name testTexSubImage3D_03
* @tc.desc Test texSubImage3D. * @tc.desc Test texSubImage3D_03.
*/ */
it('testTexSubImage3D', 0, async function(done) { it('testTexSubImage3D_03', 0, async function(done) {
//initContext(); //initContext();
try { try {
console.info('jsWebGL testTexSubImage3D test start ...66'); console.info('jsWebGL testTexSubImage3D_03 test start ...66');
console.info('jsWebGL testTexSubImage3D test start ...' + JSON.stringify(gl)); console.info('jsWebGL testTexSubImage3D_03 test start ...' + JSON.stringify(gl));
gl2.texSubImage3D(gl.TEXTURE_3D, 0, 0, 0, 0, 200, 200, 1, gl.LUMINANCE, gl gl2.texSubImage3D(gl.TEXTURE_3D, 0, 0, 0, 0, 200, 200, 1, gl.LUMINANCE, gl
.UNSIGNED_BYTE, 1); .UNSIGNED_BYTE, 1);
const texSubImage3DError = gl.getError(); const texSubImage3DError = gl.getError();
console.info("texSubImage3DError: " + texSubImage3DError); console.info("texSubImage3D_03Error: " + texSubImage3DError);
expect(texSubImage3DError).assertEqual(0); expect(texSubImage3DError).assertEqual(0);
//deleteContext(); //deleteContext();
done(); done();
} catch (e) { } catch (e) {
console.log("testTexSubImage3D has failed for " + e) console.log("testTexSubImage3D_03 has failed for " + e)
expect(null).assertFail() expect(null).assertFail()
} }
}) })
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0983 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0983
* @tc.name testCompressedTexImage3D * @tc.name testCompressedTexImage3D_01
* @tc.desc Test compressedTexImage3D. * @tc.desc Test compressedTexImage3D_01.
*/ */
it('testCompressedTexImage3D', 0, async function(done) { it('testCompressedTexImage3D_01', 0, async function(done) {
//initContext(); //initContext();
try { try {
console.info('jsWebGL testCompressedTexImage3D test start ...66'); console.info('jsWebGL testCompressedTexImage3D_01 test start ...66');
console.info('jsWebGL testCompressedTexImage3D test start ...' + JSON.stringify(gl)); console.info('jsWebGL testCompressedTexImage3D_01 test start ...' + JSON.stringify(gl));
const buffer = new ArrayBuffer(8); const buffer = new ArrayBuffer(8);
gl2.compressedTexImage3D(gl.TEXTURE_3D, 0, 0x83F0, 512, 512, 0, buffer); gl2.compressedTexImage3D(gl.TEXTURE_3D, 0, 0x83F0, 512, 512, 0, buffer);
const compressedTexImage3DError = gl.getError(); const compressedTexImage3DError = gl.getError();
console.info("compressedTexImage3DError: " + compressedTexImage3DError); console.info("compressedTexImage3D_01Error: " + compressedTexImage3DError);
expect(compressedTexImage3DError).assertEqual(0); expect(compressedTexImage3DError).assertEqual(0);
//deleteContext(); //deleteContext();
done(); done();
} catch (e) { } catch (e) {
console.log("testCompressedTexImage3D has failed for " + e) console.log("testCompressedTexImage3D_01 has failed for " + e)
expect(null).assertFail() expect(null).assertFail()
} }
}) })
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0984 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0984
* @tc.name testCompressedTexImage3D * @tc.name testCompressedTexImage3D_02
* @tc.desc Test compressedTexImage3D. * @tc.desc Test compressedTexImage3D_02.
*/ */
it('testCompressedTexImage3D', 0, async function(done) { it('testCompressedTexImage3D_02', 0, async function(done) {
//initContext(); //initContext();
try { try {
console.info('jsWebGL testCompressedTexImage3D test start ...66'); console.info('jsWebGL testCompressedTexImage3D_02 test start ...66');
console.info('jsWebGL testCompressedTexImage3D test start ...' + JSON.stringify(gl)); console.info('jsWebGL testCompressedTexImage3D_02 test start ...' + JSON.stringify(gl));
const buffer = new ArrayBuffer(8); const buffer = new ArrayBuffer(8);
gl2.compressedTexImage3D(gl.TEXTURE_3D, 0, 0x83F0, 512, 512, 0, buffer, 0, 0); gl2.compressedTexImage3D(gl.TEXTURE_3D, 0, 0x83F0, 512, 512, 0, buffer, 0, 0);
const compressedTexImage3DError = gl.getError(); const compressedTexImage3DError = gl.getError();
console.info("compressedTexImage3DError: " + compressedTexImage3DError); console.info("compressedTexImage3D_02Error: " + compressedTexImage3DError);
expect(compressedTexImage3DError).assertEqual(0); expect(compressedTexImage3DError).assertEqual(0);
//deleteContext(); //deleteContext();
done(); done();
} catch (e) { } catch (e) {
console.log("testCompressedTexImage3D has failed for " + e) console.log("testCompressedTexImage3D_02 has failed for " + e)
expect(null).assertFail() expect(null).assertFail()
} }
}) })
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0985 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0985
* @tc.name testCompressedTexImage3D * @tc.name testCompressedTexImage3D_03
* @tc.desc Test compressedTexImage3D. * @tc.desc Test compressedTexImage3D_03.
*/ */
it('testCompressedTexImage3D', 0, async function(done) { it('testCompressedTexImage3D_03', 0, async function(done) {
//initContext(); //initContext();
try { try {
console.info('jsWebGL testCompressedTexImage3D test start ...66'); console.info('jsWebGL testCompressedTexImage3D_03 test start ...66');
console.info('jsWebGL testCompressedTexImage3D test start ...' + JSON.stringify(gl)); console.info('jsWebGL testCompressedTexImage3D_03 test start ...' + JSON.stringify(gl));
gl2.compressedTexImage3D(gl.TEXTURE_3D, 0, 0x83F0, 512, 512, 0, gl2.PIXEL_UNPACK_BUFFER, gl2.compressedTexImage3D(gl.TEXTURE_3D, 0, 0x83F0, 512, 512, 0, gl2.PIXEL_UNPACK_BUFFER,
0); 0);
const compressedTexImage3DError = gl.getError(); const compressedTexImage3DError = gl.getError();
console.info("compressedTexImage3DError: " + compressedTexImage3DError); console.info("compressedTexImage3D_03Error: " + compressedTexImage3DError);
expect(compressedTexImage3DError).assertEqual(0); expect(compressedTexImage3DError).assertEqual(0);
//deleteContext(); //deleteContext();
done(); done();
} catch (e) { } catch (e) {
console.log("testCompressedTexImage3D has failed for " + e) console.log("testCompressedTexImage3D_03 has failed for " + e)
expect(null).assertFail() expect(null).assertFail()
} }
}) })
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0986 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0986
* @tc.name testCompressedTexImage3D * @tc.name testCompressedTexImage3D_04
* @tc.desc Test compressedTexImage3D. * @tc.desc Test compressedTexImage3D_04.
*/ */
it('testCompressedTexImage3D', 0, async function(done) { it('testCompressedTexImage3D_04', 0, async function(done) {
//initContext(); //initContext();
try { try {
console.info('jsWebGL testCompressedTexImage3D test start ...66'); console.info('jsWebGL testCompressedTexImage3D_04 test start ...66');
console.info('jsWebGL testCompressedTexImage3D test start ...' + JSON.stringify(gl)); console.info('jsWebGL testCompressedTexImage3D_04 test start ...' + JSON.stringify(gl));
const buffer = new ArrayBuffer(8); const buffer = new ArrayBuffer(8);
gl2.compressedTexImage3D(gl.TEXTURE_3D, false, 0x83F0, 512, 512, 0, buffer); gl2.compressedTexImage3D(gl.TEXTURE_3D, false, 0x83F0, 512, 512, 0, buffer);
const compressedTexImage3DError = gl.getError(); const compressedTexImage3DError = gl.getError();
console.info("compressedTexImage3DError: " + compressedTexImage3DError); console.info("compressedTexImage3D_04Error: " + compressedTexImage3DError);
expect(compressedTexImage3DError).assertEqual(0); expect(compressedTexImage3DError).assertEqual(0);
//deleteContext(); //deleteContext();
done(); done();
} catch (e) { } catch (e) {
console.log("testCompressedTexImage3D has failed for " + e) console.log("testCompressedTexImage3D_04 has failed for " + e)
expect(null).assertFail() expect(null).assertFail()
} }
}) })
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0987 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0987
* @tc.name testCompressedTexImage3D * @tc.name testCompressedTexImage3D_05
* @tc.desc Test compressedTexImage3D. * @tc.desc Test compressedTexImage3D_05.
*/ */
it('testCompressedTexImage3D', 0, async function(done) { it('testCompressedTexImage3D_05', 0, async function(done) {
//initContext(); //initContext();
try { try {
console.info('jsWebGL testCompressedTexImage3D test start ...66'); console.info('jsWebGL testCompressedTexImage3D_05 test start ...66');
console.info('jsWebGL testCompressedTexImage3D test start ...' + JSON.stringify(gl)); console.info('jsWebGL testCompressedTexImage3D_05 test start ...' + JSON.stringify(gl));
const buffer = new ArrayBuffer(8); const buffer = new ArrayBuffer(8);
gl2.compressedTexImage3D(gl.TEXTURE_3D, false, 0x83F0, 512, 512, 0, buffer, 0, 0); gl2.compressedTexImage3D(gl.TEXTURE_3D, false, 0x83F0, 512, 512, 0, buffer, 0, 0);
const compressedTexImage3DError = gl.getError(); const compressedTexImage3DError = gl.getError();
console.info("compressedTexImage3DError: " + compressedTexImage3DError); console.info("compressedTexImage3D_05Error: " + compressedTexImage3DError);
expect(compressedTexImage3DError).assertEqual(0); expect(compressedTexImage3DError).assertEqual(0);
//deleteContext(); //deleteContext();
done(); done();
} catch (e) { } catch (e) {
console.log("testCompressedTexImage3D has failed for " + e) console.log("testCompressedTexImage3D_05 has failed for " + e)
expect(null).assertFail() expect(null).assertFail()
} }
}) })
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0988 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0988
* @tc.name testCompressedTexImage3D * @tc.name testCompressedTexImage3D_06
* @tc.desc Test compressedTexImage3D. * @tc.desc Test compressedTexImage3D_06.
*/ */
it('testCompressedTexImage3D', 0, async function(done) { it('testCompressedTexImage3D_06', 0, async function(done) {
//initContext(); //initContext();
try { try {
console.info('jsWebGL testCompressedTexImage3D test start ...66'); console.info('jsWebGL testCompressedTexImage3D_06 test start ...66');
console.info('jsWebGL testCompressedTexImage3D test start ...' + JSON.stringify(gl)); console.info('jsWebGL testCompressedTexImage3D_06 test start ...' + JSON.stringify(gl));
gl2.compressedTexImage3D(gl.TEXTURE_3D, false, 0x83F0, 512, 512, 0, gl2 gl2.compressedTexImage3D(gl.TEXTURE_3D, false, 0x83F0, 512, 512, 0, gl2
.PIXEL_UNPACK_BUFFER, 0); .PIXEL_UNPACK_BUFFER, 0);
const compressedTexImage3DError = gl.getError(); const compressedTexImage3DError = gl.getError();
console.info("compressedTexImage3DError: " + compressedTexImage3DError); console.info("compressedTexImage3D_06Error: " + compressedTexImage3DError);
expect(compressedTexImage3DError).assertEqual(0); expect(compressedTexImage3DError).assertEqual(0);
//deleteContext(); //deleteContext();
done(); done();
} catch (e) { } catch (e) {
console.log("testCompressedTexImage3D has failed for " + e) console.log("testCompressedTexImage3D_06 has failed for " + e)
expect(null).assertFail() expect(null).assertFail()
} }
}) })
......
...@@ -362,10 +362,10 @@ describe('webgl1Test_webgl11', function() { ...@@ -362,10 +362,10 @@ describe('webgl1Test_webgl11', function() {
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_1005 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_1005
* @tc.name testBufferData__3 * @tc.name testBufferData__5
* @tc.desc Test bufferData. * @tc.desc Test bufferData.
*/ */
it('testBufferData__3', 0, async function(done) { it('testBufferData__5', 0, async function(done) {
//initContext(); //initContext();
console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2));
const buffer = gl.createBuffer(); const buffer = gl.createBuffer();
......
...@@ -1337,10 +1337,10 @@ describe('webgl1Test_webgl12', function() { ...@@ -1337,10 +1337,10 @@ describe('webgl1Test_webgl12', function() {
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_1172 * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_1172
* @tc.name testTexImage2D_1_16 * @tc.name testTexImage2D_1_17
* @tc.desc Test texImage2D. * @tc.desc Test texImage2D.
*/ */
it('testTexImage2D_1_16', 0, async function(done) { it('testTexImage2D_1_17', 0, async function(done) {
//initContext(); //initContext();
console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2));
var buffer = new ArrayBuffer(8); var buffer = new ArrayBuffer(8);
......
...@@ -611,7 +611,7 @@ describe('webgl1Test_webgl13', function() { ...@@ -611,7 +611,7 @@ describe('webgl1Test_webgl13', function() {
* @tc.name testTexImage2D_11_1 * @tc.name testTexImage2D_11_1
* @tc.desc Test texImage2D. * @tc.desc Test texImage2D.
*/ */
it('testTexImage2D_11_1', 0, async function(done) { it('testTexImage2D_10_2', 0, async function(done) {
//initContext(); //initContext();
console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...66');
console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl));
......
...@@ -838,10 +838,10 @@ describe('webgl1Test_webgl14', function() { ...@@ -838,10 +838,10 @@ describe('webgl1Test_webgl14', function() {
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_1328 * @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. * @tc.desc Test clearBufferfv.
*/ */
it('webgl_test_clearBufferfv_22', 0, async function(done) { it('webgl_test_clearBufferfv_22_1', 0, async function(done) {
//initContext(); //initContext();
console.info("webgltest into clearBufferfv"); console.info("webgltest into clearBufferfv");
...@@ -899,10 +899,10 @@ describe('webgl1Test_webgl14', function() { ...@@ -899,10 +899,10 @@ describe('webgl1Test_webgl14', function() {
/** /**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_1331 * @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. * @tc.desc Test clearBufferfv.
*/ */
it('webgl_test_clearBufferfv_22', 0, async function(done) { it('webgl_test_clearBufferfv_22_2', 0, async function(done) {
//initContext(); //initContext();
console.info("webgltest into clearBufferfv"); console.info("webgltest into clearBufferfv");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册