Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9194ac45
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看板
未验证
提交
9194ac45
编写于
2月 28, 2023
作者:
O
openharmony_ci
提交者:
Gitee
2月 28, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7752 测试用例重复名称修改
Merge pull request !7752 from 李西腾/master
上级
7f5670e8
af3b487c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
83 addition
and
83 deletion
+83
-83
graphic/webGL/src/main/js/test/WebGL.test01.js
graphic/webGL/src/main/js/test/WebGL.test01.js
+10
-10
graphic/webGL/src/main/js/test/WebGL.test08.js
graphic/webGL/src/main/js/test/WebGL.test08.js
+10
-10
graphic/webGL/src/main/js/test/WebGL.test10.js
graphic/webGL/src/main/js/test/WebGL.test10.js
+63
-63
未找到文件。
graphic/webGL/src/main/js/test/WebGL.test01.js
浏览文件 @
9194ac45
...
...
@@ -999,15 +999,15 @@ export default function webgl1Test_webgl1(){
/**
* @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();
...
...
@@ -1017,15 +1017,15 @@ export default function webgl1Test_webgl1(){
/**
* @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/test/WebGL.test08.js
浏览文件 @
9194ac45
...
...
@@ -805,15 +805,15 @@ export default function webgl1Test_webgl8() {
/**
* @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
();
...
...
@@ -822,15 +822,15 @@ export default function webgl1Test_webgl8() {
/**
* @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
();
...
...
graphic/webGL/src/main/js/test/WebGL.test10.js
浏览文件 @
9194ac45
...
...
@@ -1685,206 +1685,206 @@ export default function webgl1Test_webgl10() {
/**
* @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
()
}
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录