Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
e6f65a2c
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e6f65a2c
编写于
6月 09, 2023
作者:
L
lixiteng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
webGL重复用例整改
Signed-off-by:
N
lixiteng
<
lixiteng@huawei.com
>
上级
74222612
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
107 addition
and
107 deletion
+107
-107
graphic/webGL/src/main/js/default/test/WebGL.test01.js
graphic/webGL/src/main/js/default/test/WebGL.test01.js
+10
-10
graphic/webGL/src/main/js/default/test/WebGL.test06.js
graphic/webGL/src/main/js/default/test/WebGL.test06.js
+10
-10
graphic/webGL/src/main/js/default/test/WebGL.test08.js
graphic/webGL/src/main/js/default/test/WebGL.test08.js
+12
-12
graphic/webGL/src/main/js/default/test/WebGL.test10.js
graphic/webGL/src/main/js/default/test/WebGL.test10.js
+66
-66
graphic/webGL/src/main/js/default/test/WebGL.test11.js
graphic/webGL/src/main/js/default/test/WebGL.test11.js
+2
-2
graphic/webGL/src/main/js/default/test/WebGL.test12.js
graphic/webGL/src/main/js/default/test/WebGL.test12.js
+2
-2
graphic/webGL/src/main/js/default/test/WebGL.test13.js
graphic/webGL/src/main/js/default/test/WebGL.test13.js
+1
-1
graphic/webGL/src/main/js/default/test/WebGL.test14.js
graphic/webGL/src/main/js/default/test/WebGL.test14.js
+4
-4
未找到文件。
graphic/webGL/src/main/js/default/test/WebGL.test01.js
浏览文件 @
e6f65a2c
...
...
@@ -1007,15 +1007,15 @@ describe('webgl1Test_webgl1', function() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0033
* @tc.name webgl_test_copyTexImage2D
* @tc.desc Test copyTexImage2D.
* @tc.name webgl_test_copyTexImage2D
_01
* @tc.desc Test copyTexImage2D
_01
.
*/
it
(
'
webgl_test_copyTexImage2D
'
,
0
,
async
function
(
done
)
{
it
(
'
webgl_test_copyTexImage2D
_01
'
,
0
,
async
function
(
done
)
{
//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
);
let
errorCode
=
gl
.
getError
();
console
.
info
(
"
webgltest copyTexImage2D getError:
"
+
errorCode
);
console
.
info
(
"
webgltest copyTexImage2D
_01
getError:
"
+
errorCode
);
expect
(
errorCode
).
assertEqual
(
gl
.
NO_ERROR
);
//deleteContext();
...
...
@@ -1025,15 +1025,15 @@ describe('webgl1Test_webgl1', function() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0034
* @tc.name webgl_test_copyTexImage2D
* @tc.desc Test copyTexImage2D.
* @tc.name webgl_test_copyTexImage2D
_02
* @tc.desc Test copyTexImage2D
_02
.
*/
it
(
'
webgl_test_copyTexImage2D
'
,
0
,
async
function
(
done
)
{
it
(
'
webgl_test_copyTexImage2D
_02
'
,
0
,
async
function
(
done
)
{
//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
);
let
errorCode
=
gl
.
getError
();
console
.
info
(
"
webgltest copyTexImage2D getError:
"
+
errorCode
);
console
.
info
(
"
webgltest copyTexImage2D
_02
getError:
"
+
errorCode
);
expect
(
errorCode
).
assertEqual
(
gl
.
NO_ERROR
);
//deleteContext();
...
...
graphic/webGL/src/main/js/default/test/WebGL.test06.js
浏览文件 @
e6f65a2c
...
...
@@ -1454,14 +1454,14 @@ describe('webgl1Test_webgl6', function() {
/**
* @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
)
{
//initContext();
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
();
...
...
@@ -1470,21 +1470,21 @@ describe('webgl1Test_webgl6', function() {
//deleteContext();
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_0
1_
2
* @tc.desc Test compressedTexImage3D.
*/
it
(
'
testCompressedTexImage3D_02
'
,
0
,
async
function
(
done
)
{
it
(
'
testCompressedTexImage3D_0
1_
2
'
,
0
,
async
function
(
done
)
{
//initContext();
try
{
console
.
info
(
'
jsWebGL testCompressedTexImage3D_02 test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D_02 test start ...
'
+
JSON
.
stringify
(
gl
));
console
.
info
(
'
jsWebGL testCompressedTexImage3D_0
1_
2 test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D_0
1_
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
();
...
...
@@ -1493,7 +1493,7 @@ describe('webgl1Test_webgl6', function() {
//deleteContext();
done
();
}
catch
(
e
)
{
console
.
log
(
"
testCompressedTexImage3D_02 has failed for
"
+
e
)
console
.
log
(
"
testCompressedTexImage3D_0
1_
2 has failed for
"
+
e
)
expect
(
null
).
assertFail
()
}
})
...
...
graphic/webGL/src/main/js/default/test/WebGL.test08.js
浏览文件 @
e6f65a2c
...
...
@@ -817,15 +817,15 @@ describe('webgl1Test_webgl8', function() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0728
* @tc.name webgl_test_activeTexture_
2
* @tc.desc Test activeTexture.
* @tc.name webgl_test_activeTexture_
01
* @tc.desc Test activeTexture
_01
.
*/
it
(
'
webgl_test_activeTexture_1
'
,
0
,
async
function
(
done
)
{
it
(
'
webgl_test_activeTexture_
0
1
'
,
0
,
async
function
(
done
)
{
//initContext();
console
.
info
(
"
webgltest into activeTexture
"
);
console
.
info
(
"
webgltest into activeTexture
_01
"
);
gl
.
activeTexture
(
gl
.
TEXTURE2
);
const
activeTextureParameter
=
gl
.
getParameter
(
gl
.
ACTIVE_TEXTURE
);
console
.
info
(
"
webgltest activeTexture --> getParameter:
"
+
activeTextureParameter
);
console
.
info
(
"
webgltest activeTexture
_01
--> getParameter:
"
+
activeTextureParameter
);
expect
(
activeTextureParameter
).
assertEqual
(
33986
);
//deleteContext();
done
();
...
...
@@ -835,15 +835,15 @@ describe('webgl1Test_webgl8', function() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0729
* @tc.name webgl_test_activeTexture_
3
* @tc.desc Test activeTexture.
* @tc.name webgl_test_activeTexture_
02
* @tc.desc Test activeTexture
_02
.
*/
it
(
'
webgl_test_activeTexture_
1
'
,
0
,
async
function
(
done
)
{
it
(
'
webgl_test_activeTexture_
02
'
,
0
,
async
function
(
done
)
{
//initContext();
console
.
info
(
"
webgltest into activeTexture
"
);
console
.
info
(
"
webgltest into activeTexture
_02
"
);
gl
.
activeTexture
(
gl
.
TEXTURE3
);
const
activeTextureParameter
=
gl
.
getParameter
(
gl
.
ACTIVE_TEXTURE
);
console
.
info
(
"
webgltest activeTexture --> getParameter:
"
+
activeTextureParameter
);
console
.
info
(
"
webgltest activeTexture
_02
--> getParameter:
"
+
activeTextureParameter
);
expect
(
activeTextureParameter
).
assertEqual
(
33987
);
//deleteContext();
done
();
...
...
@@ -2098,10 +2098,10 @@ describe('webgl1Test_webgl8', function() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0784
* @tc.name webgl_test_framebufferTexture2D2
5
* @tc.name webgl_test_framebufferTexture2D2
7
* @tc.desc Test framebufferTexture2D.
*/
it
(
'
webgl_test_framebufferTexture2D2
5
'
,
0
,
async
function
(
done
)
{
it
(
'
webgl_test_framebufferTexture2D2
7
'
,
0
,
async
function
(
done
)
{
//initContext();
console
.
info
(
"
webgltest into framebufferTexture2D
"
);
const
texture
=
gl
.
createTexture
();
...
...
graphic/webGL/src/main/js/default/test/WebGL.test10.js
浏览文件 @
e6f65a2c
...
...
@@ -985,12 +985,12 @@ describe('webgl1Test_webgl10', function() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0948
* @tc.name testInvalidateFramebuffer_1_0
1
* @tc.name testInvalidateFramebuffer_1_0
7
* @tc.desc Test invalidateFramebuffer.
*/
it
(
'
testInvalidateFramebuffer_1_0
1
'
,
0
,
async
function
(
done
)
{
it
(
'
testInvalidateFramebuffer_1_0
7
'
,
0
,
async
function
(
done
)
{
//initContext();
console
.
info
(
'
jsWebGL testInvalidateFramebuffer_1_0
1
test start ...66
'
);
console
.
info
(
'
jsWebGL testInvalidateFramebuffer_1_0
7
test start ...66
'
);
gl2
.
invalidateFramebuffer
(
gl
.
READ_FRAMEBUFFER
,
[
gl
.
COLOR_ATTACHMENT0
,
gl
.
COLOR_ATTACHMENT1
]);
const
invalidateFramebufferError
=
gl
.
getError
();
...
...
@@ -1694,206 +1694,206 @@ describe('webgl1Test_webgl10', function() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0980
* @tc.name testTexSubImage3D
* @tc.desc Test texSubImage3D.
* @tc.name testTexSubImage3D
_01
* @tc.desc Test texSubImage3D
_01
.
*/
it
(
'
testTexSubImage3D
'
,
0
,
async
function
(
done
)
{
it
(
'
testTexSubImage3D
_01
'
,
0
,
async
function
(
done
)
{
//initContext();
try
{
console
.
info
(
'
jsWebGL testTexSubImage3D test start ...66
'
);
console
.
info
(
'
jsWebGL testTexSubImage3D test start ...
'
+
JSON
.
stringify
(
gl
));
console
.
info
(
'
jsWebGL testTexSubImage3D
_01
test start ...66
'
);
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
,
1
);
const
texSubImage3DError
=
gl
.
getError
();
console
.
info
(
"
texSubImage3DError:
"
+
texSubImage3DError
);
console
.
info
(
"
texSubImage3D
_01
Error:
"
+
texSubImage3DError
);
expect
(
texSubImage3DError
).
assertEqual
(
0
);
//deleteContext();
done
();
}
catch
(
e
)
{
console
.
log
(
"
testTexSubImage3D has failed for
"
+
e
)
console
.
log
(
"
testTexSubImage3D
_01
has failed for
"
+
e
)
expect
(
null
).
assertFail
()
}
})
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0981
* @tc.name testTexSubImage3D
* @tc.desc Test texSubImage3D.
* @tc.name testTexSubImage3D
_02
* @tc.desc Test texSubImage3D
_02
.
*/
it
(
'
testTexSubImage3D
'
,
0
,
async
function
(
done
)
{
it
(
'
testTexSubImage3D
_02
'
,
0
,
async
function
(
done
)
{
//initContext();
try
{
console
.
info
(
'
jsWebGL testTexSubImage3D test start ...66
'
);
console
.
info
(
'
jsWebGL testTexSubImage3D test start ...
'
+
JSON
.
stringify
(
gl
));
console
.
info
(
'
jsWebGL testTexSubImage3D
_02
test start ...66
'
);
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
);
const
texSubImage3DError
=
gl
.
getError
();
console
.
info
(
"
texSubImage3DError:
"
+
texSubImage3DError
);
console
.
info
(
"
texSubImage3D
_02
Error:
"
+
texSubImage3DError
);
expect
(
texSubImage3DError
).
assertEqual
(
0
);
//deleteContext();
done
();
}
catch
(
e
)
{
console
.
log
(
"
testTexSubImage3D has failed for
"
+
e
)
console
.
log
(
"
testTexSubImage3D
_02
has failed for
"
+
e
)
expect
(
null
).
assertFail
()
}
})
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0982
* @tc.name testTexSubImage3D
* @tc.desc Test texSubImage3D.
* @tc.name testTexSubImage3D
_03
* @tc.desc Test texSubImage3D
_03
.
*/
it
(
'
testTexSubImage3D
'
,
0
,
async
function
(
done
)
{
it
(
'
testTexSubImage3D
_03
'
,
0
,
async
function
(
done
)
{
//initContext();
try
{
console
.
info
(
'
jsWebGL testTexSubImage3D test start ...66
'
);
console
.
info
(
'
jsWebGL testTexSubImage3D test start ...
'
+
JSON
.
stringify
(
gl
));
console
.
info
(
'
jsWebGL testTexSubImage3D
_03
test start ...66
'
);
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
.
UNSIGNED_BYTE
,
1
);
const
texSubImage3DError
=
gl
.
getError
();
console
.
info
(
"
texSubImage3DError:
"
+
texSubImage3DError
);
console
.
info
(
"
texSubImage3D
_03
Error:
"
+
texSubImage3DError
);
expect
(
texSubImage3DError
).
assertEqual
(
0
);
//deleteContext();
done
();
}
catch
(
e
)
{
console
.
log
(
"
testTexSubImage3D has failed for
"
+
e
)
console
.
log
(
"
testTexSubImage3D
_03
has failed for
"
+
e
)
expect
(
null
).
assertFail
()
}
})
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0983
* @tc.name testCompressedTexImage3D
* @tc.desc Test compressedTexImage3D.
* @tc.name testCompressedTexImage3D
_01
* @tc.desc Test compressedTexImage3D
_01
.
*/
it
(
'
testCompressedTexImage3D
'
,
0
,
async
function
(
done
)
{
it
(
'
testCompressedTexImage3D
_01
'
,
0
,
async
function
(
done
)
{
//initContext();
try
{
console
.
info
(
'
jsWebGL testCompressedTexImage3D test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D test start ...
'
+
JSON
.
stringify
(
gl
));
console
.
info
(
'
jsWebGL testCompressedTexImage3D
_01
test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D
_01
test start ...
'
+
JSON
.
stringify
(
gl
));
const
buffer
=
new
ArrayBuffer
(
8
);
gl2
.
compressedTexImage3D
(
gl
.
TEXTURE_3D
,
0
,
0x83F0
,
512
,
512
,
0
,
buffer
);
const
compressedTexImage3DError
=
gl
.
getError
();
console
.
info
(
"
compressedTexImage3DError:
"
+
compressedTexImage3DError
);
console
.
info
(
"
compressedTexImage3D
_01
Error:
"
+
compressedTexImage3DError
);
expect
(
compressedTexImage3DError
).
assertEqual
(
0
);
//deleteContext();
done
();
}
catch
(
e
)
{
console
.
log
(
"
testCompressedTexImage3D has failed for
"
+
e
)
console
.
log
(
"
testCompressedTexImage3D
_01
has failed for
"
+
e
)
expect
(
null
).
assertFail
()
}
})
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0984
* @tc.name testCompressedTexImage3D
* @tc.desc Test compressedTexImage3D.
* @tc.name testCompressedTexImage3D
_02
* @tc.desc Test compressedTexImage3D
_02
.
*/
it
(
'
testCompressedTexImage3D
'
,
0
,
async
function
(
done
)
{
it
(
'
testCompressedTexImage3D
_02
'
,
0
,
async
function
(
done
)
{
//initContext();
try
{
console
.
info
(
'
jsWebGL testCompressedTexImage3D test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D test start ...
'
+
JSON
.
stringify
(
gl
));
console
.
info
(
'
jsWebGL testCompressedTexImage3D
_02
test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D
_02
test start ...
'
+
JSON
.
stringify
(
gl
));
const
buffer
=
new
ArrayBuffer
(
8
);
gl2
.
compressedTexImage3D
(
gl
.
TEXTURE_3D
,
0
,
0x83F0
,
512
,
512
,
0
,
buffer
,
0
,
0
);
const
compressedTexImage3DError
=
gl
.
getError
();
console
.
info
(
"
compressedTexImage3DError:
"
+
compressedTexImage3DError
);
console
.
info
(
"
compressedTexImage3D
_02
Error:
"
+
compressedTexImage3DError
);
expect
(
compressedTexImage3DError
).
assertEqual
(
0
);
//deleteContext();
done
();
}
catch
(
e
)
{
console
.
log
(
"
testCompressedTexImage3D has failed for
"
+
e
)
console
.
log
(
"
testCompressedTexImage3D
_02
has failed for
"
+
e
)
expect
(
null
).
assertFail
()
}
})
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0985
* @tc.name testCompressedTexImage3D
* @tc.desc Test compressedTexImage3D.
* @tc.name testCompressedTexImage3D
_03
* @tc.desc Test compressedTexImage3D
_03
.
*/
it
(
'
testCompressedTexImage3D
'
,
0
,
async
function
(
done
)
{
it
(
'
testCompressedTexImage3D
_03
'
,
0
,
async
function
(
done
)
{
//initContext();
try
{
console
.
info
(
'
jsWebGL testCompressedTexImage3D test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D test start ...
'
+
JSON
.
stringify
(
gl
));
console
.
info
(
'
jsWebGL testCompressedTexImage3D
_03
test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D
_03
test start ...
'
+
JSON
.
stringify
(
gl
));
gl2
.
compressedTexImage3D
(
gl
.
TEXTURE_3D
,
0
,
0x83F0
,
512
,
512
,
0
,
gl2
.
PIXEL_UNPACK_BUFFER
,
0
);
const
compressedTexImage3DError
=
gl
.
getError
();
console
.
info
(
"
compressedTexImage3DError:
"
+
compressedTexImage3DError
);
console
.
info
(
"
compressedTexImage3D
_03
Error:
"
+
compressedTexImage3DError
);
expect
(
compressedTexImage3DError
).
assertEqual
(
0
);
//deleteContext();
done
();
}
catch
(
e
)
{
console
.
log
(
"
testCompressedTexImage3D has failed for
"
+
e
)
console
.
log
(
"
testCompressedTexImage3D
_03
has failed for
"
+
e
)
expect
(
null
).
assertFail
()
}
})
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0986
* @tc.name testCompressedTexImage3D
* @tc.desc Test compressedTexImage3D.
* @tc.name testCompressedTexImage3D
_04
* @tc.desc Test compressedTexImage3D
_04
.
*/
it
(
'
testCompressedTexImage3D
'
,
0
,
async
function
(
done
)
{
it
(
'
testCompressedTexImage3D
_04
'
,
0
,
async
function
(
done
)
{
//initContext();
try
{
console
.
info
(
'
jsWebGL testCompressedTexImage3D test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D test start ...
'
+
JSON
.
stringify
(
gl
));
console
.
info
(
'
jsWebGL testCompressedTexImage3D
_04
test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D
_04
test start ...
'
+
JSON
.
stringify
(
gl
));
const
buffer
=
new
ArrayBuffer
(
8
);
gl2
.
compressedTexImage3D
(
gl
.
TEXTURE_3D
,
false
,
0x83F0
,
512
,
512
,
0
,
buffer
);
const
compressedTexImage3DError
=
gl
.
getError
();
console
.
info
(
"
compressedTexImage3DError:
"
+
compressedTexImage3DError
);
console
.
info
(
"
compressedTexImage3D
_04
Error:
"
+
compressedTexImage3DError
);
expect
(
compressedTexImage3DError
).
assertEqual
(
0
);
//deleteContext();
done
();
}
catch
(
e
)
{
console
.
log
(
"
testCompressedTexImage3D has failed for
"
+
e
)
console
.
log
(
"
testCompressedTexImage3D
_04
has failed for
"
+
e
)
expect
(
null
).
assertFail
()
}
})
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0987
* @tc.name testCompressedTexImage3D
* @tc.desc Test compressedTexImage3D.
* @tc.name testCompressedTexImage3D
_05
* @tc.desc Test compressedTexImage3D
_05
.
*/
it
(
'
testCompressedTexImage3D
'
,
0
,
async
function
(
done
)
{
it
(
'
testCompressedTexImage3D
_05
'
,
0
,
async
function
(
done
)
{
//initContext();
try
{
console
.
info
(
'
jsWebGL testCompressedTexImage3D test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D test start ...
'
+
JSON
.
stringify
(
gl
));
console
.
info
(
'
jsWebGL testCompressedTexImage3D
_05
test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D
_05
test start ...
'
+
JSON
.
stringify
(
gl
));
const
buffer
=
new
ArrayBuffer
(
8
);
gl2
.
compressedTexImage3D
(
gl
.
TEXTURE_3D
,
false
,
0x83F0
,
512
,
512
,
0
,
buffer
,
0
,
0
);
const
compressedTexImage3DError
=
gl
.
getError
();
console
.
info
(
"
compressedTexImage3DError:
"
+
compressedTexImage3DError
);
console
.
info
(
"
compressedTexImage3D
_05
Error:
"
+
compressedTexImage3DError
);
expect
(
compressedTexImage3DError
).
assertEqual
(
0
);
//deleteContext();
done
();
}
catch
(
e
)
{
console
.
log
(
"
testCompressedTexImage3D has failed for
"
+
e
)
console
.
log
(
"
testCompressedTexImage3D
_05
has failed for
"
+
e
)
expect
(
null
).
assertFail
()
}
})
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0988
* @tc.name testCompressedTexImage3D
* @tc.desc Test compressedTexImage3D.
* @tc.name testCompressedTexImage3D
_06
* @tc.desc Test compressedTexImage3D
_06
.
*/
it
(
'
testCompressedTexImage3D
'
,
0
,
async
function
(
done
)
{
it
(
'
testCompressedTexImage3D
_06
'
,
0
,
async
function
(
done
)
{
//initContext();
try
{
console
.
info
(
'
jsWebGL testCompressedTexImage3D test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D test start ...
'
+
JSON
.
stringify
(
gl
));
console
.
info
(
'
jsWebGL testCompressedTexImage3D
_06
test start ...66
'
);
console
.
info
(
'
jsWebGL testCompressedTexImage3D
_06
test start ...
'
+
JSON
.
stringify
(
gl
));
gl2
.
compressedTexImage3D
(
gl
.
TEXTURE_3D
,
false
,
0x83F0
,
512
,
512
,
0
,
gl2
.
PIXEL_UNPACK_BUFFER
,
0
);
const
compressedTexImage3DError
=
gl
.
getError
();
console
.
info
(
"
compressedTexImage3DError:
"
+
compressedTexImage3DError
);
console
.
info
(
"
compressedTexImage3D
_06
Error:
"
+
compressedTexImage3DError
);
expect
(
compressedTexImage3DError
).
assertEqual
(
0
);
//deleteContext();
done
();
}
catch
(
e
)
{
console
.
log
(
"
testCompressedTexImage3D has failed for
"
+
e
)
console
.
log
(
"
testCompressedTexImage3D
_06
has failed for
"
+
e
)
expect
(
null
).
assertFail
()
}
})
...
...
graphic/webGL/src/main/js/default/test/WebGL.test11.js
浏览文件 @
e6f65a2c
...
...
@@ -362,10 +362,10 @@ describe('webgl1Test_webgl11', function() {
/**
* @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
)
{
//initContext();
console
.
info
(
'
jsWebGL2 bufferData test start ...
'
+
JSON
.
stringify
(
gl2
));
const
buffer
=
gl
.
createBuffer
();
...
...
graphic/webGL/src/main/js/default/test/WebGL.test12.js
浏览文件 @
e6f65a2c
...
...
@@ -1337,10 +1337,10 @@ describe('webgl1Test_webgl12', function() {
/**
* @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_1172
* @tc.name testTexImage2D_1_1
6
* @tc.name testTexImage2D_1_1
7
* @tc.desc Test texImage2D.
*/
it
(
'
testTexImage2D_1_1
6
'
,
0
,
async
function
(
done
)
{
it
(
'
testTexImage2D_1_1
7
'
,
0
,
async
function
(
done
)
{
//initContext();
console
.
info
(
'
jsWebGL2 texImage2D test start ...
'
+
JSON
.
stringify
(
gl2
));
var
buffer
=
new
ArrayBuffer
(
8
);
...
...
graphic/webGL/src/main/js/default/test/WebGL.test13.js
浏览文件 @
e6f65a2c
...
...
@@ -611,7 +611,7 @@ describe('webgl1Test_webgl13', function() {
* @tc.name testTexImage2D_11_1
* @tc.desc Test texImage2D.
*/
it
(
'
testTexImage2D_1
1_1
'
,
0
,
async
function
(
done
)
{
it
(
'
testTexImage2D_1
0_2
'
,
0
,
async
function
(
done
)
{
//initContext();
console
.
info
(
'
jsWebGL testTexImage2D test start ...66
'
);
console
.
info
(
'
jsWebGL testTexImage2D test start ...
'
+
JSON
.
stringify
(
gl
));
...
...
graphic/webGL/src/main/js/default/test/WebGL.test14.js
浏览文件 @
e6f65a2c
...
...
@@ -838,10 +838,10 @@ describe('webgl1Test_webgl14', function() {
/**
* @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
)
{
//initContext();
console
.
info
(
"
webgltest into clearBufferfv
"
);
...
...
@@ -899,10 +899,10 @@ describe('webgl1Test_webgl14', function() {
/**
* @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
)
{
//initContext();
console
.
info
(
"
webgltest into clearBufferfv
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录