Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
8051adc2
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看板
未验证
提交
8051adc2
编写于
6月 25, 2022
作者:
O
openharmony_ci
提交者:
Gitee
6月 25, 2022
浏览文件
操作
浏览文件
下载
差异文件
!3767 杂散xts用例整改
Merge pull request !3767 from 高曦/master
上级
4e4e3d4d
156c479e
变更
18
展开全部
隐藏空白更改
内联
并排
Showing
18 changed file
with
481 addition
and
249 deletion
+481
-249
miscservices/InputMethodTest_ets/.idea/.deveco/project.cache.json
...ices/InputMethodTest_ets/.idea/.deveco/project.cache.json
+6
-0
miscservices/InputMethodTest_ets/.idea/.gitignore
miscservices/InputMethodTest_ets/.idea/.gitignore
+3
-0
miscservices/InputMethodTest_ets/.idea/InputMethodTest_ets.iml
...ervices/InputMethodTest_ets/.idea/InputMethodTest_ets.iml
+8
-0
miscservices/InputMethodTest_ets/.idea/modules.xml
miscservices/InputMethodTest_ets/.idea/modules.xml
+8
-0
miscservices/InputMethodTest_ets/.idea/vcs.xml
miscservices/InputMethodTest_ets/.idea/vcs.xml
+6
-0
miscservices/InputMethodTest_ets/entry/src/main/ets/test/InputRequestJsunit.test.ets
...t_ets/entry/src/main/ets/test/InputRequestJsunit.test.ets
+3
-1
miscservices/InputMethodTest_ets/entry/src/main/ets/test/InputmethodEngineJsunit.test.ets
.../entry/src/main/ets/test/InputmethodEngineJsunit.test.ets
+46
-7
miscservices/InputMethodTest_ets/local.properties
miscservices/InputMethodTest_ets/local.properties
+10
-0
miscservices/InputMethodTest_ets/package-lock.json
miscservices/InputMethodTest_ets/package-lock.json
+3
-0
miscservices/actspasteboardjsapitest/.idea/.deveco/project.cache.json
.../actspasteboardjsapitest/.idea/.deveco/project.cache.json
+6
-0
miscservices/actspasteboardjsapitest/.idea/.gitignore
miscservices/actspasteboardjsapitest/.idea/.gitignore
+3
-0
miscservices/actspasteboardjsapitest/.idea/actspasteboardjsapitest.iml
...actspasteboardjsapitest/.idea/actspasteboardjsapitest.iml
+8
-0
miscservices/actspasteboardjsapitest/.idea/modules.xml
miscservices/actspasteboardjsapitest/.idea/modules.xml
+8
-0
miscservices/actspasteboardjsapitest/.idea/vcs.xml
miscservices/actspasteboardjsapitest/.idea/vcs.xml
+6
-0
miscservices/actspasteboardjsapitest/entry/src/main/js/default/test/PasteBoardJsunit.test.js
...t/entry/src/main/js/default/test/PasteBoardJsunit.test.js
+338
-241
miscservices/actspasteboardjsapitest/local.properties
miscservices/actspasteboardjsapitest/local.properties
+10
-0
miscservices/actspasteboardjsapitest/package-lock.json
miscservices/actspasteboardjsapitest/package-lock.json
+3
-0
miscservices/wallpaper_js/src/main/js/Test/Wallpaper/WallpaperJsunit.test.js
...per_js/src/main/js/Test/Wallpaper/WallpaperJsunit.test.js
+6
-0
未找到文件。
miscservices/InputMethodTest_ets/.idea/.deveco/project.cache.json
0 → 100644
浏览文件 @
8051adc2
{
"BuildOptions"
:{},
"CommonInfo"
:{
"project.ide.version"
:
"3.0.0.900"
}
}
\ No newline at end of file
miscservices/InputMethodTest_ets/.idea/.gitignore
0 → 100644
浏览文件 @
8051adc2
# Default ignored files
/shelf/
/workspace.xml
miscservices/InputMethodTest_ets/.idea/InputMethodTest_ets.iml
0 → 100644
浏览文件 @
8051adc2
<?xml version="1.0" encoding="UTF-8"?>
<module
type=
"EMPTY_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<content
url=
"file://$MODULE_DIR$"
/>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</module>
\ No newline at end of file
miscservices/InputMethodTest_ets/.idea/modules.xml
0 → 100644
浏览文件 @
8051adc2
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectModuleManager"
>
<modules>
<module
fileurl=
"file://$PROJECT_DIR$/.idea/InputMethodTest_ets.iml"
filepath=
"$PROJECT_DIR$/.idea/InputMethodTest_ets.iml"
/>
</modules>
</component>
</project>
\ No newline at end of file
miscservices/InputMethodTest_ets/.idea/vcs.xml
0 → 100644
浏览文件 @
8051adc2
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$/../.."
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
miscservices/InputMethodTest_ets/entry/src/main/ets/test/InputRequestJsunit.test.ets
浏览文件 @
8051adc2
...
...
@@ -29,11 +29,13 @@ export default function inputRequestJsunit() {
let caseName: string = "inputRequest_DownloadConfig_Test_001";
console.log(`==========> ${caseName} Test start ==========>`);
let downloadConfig = {
header: "HTTP",
url: "www.testdownload.com",
enableMetered: false,
enableRoaming: false,
description: "test download",
title: ""
title: "",
networkType: "",
};
try {
let promise = request.download(downloadConfig);
...
...
miscservices/InputMethodTest_ets/entry/src/main/ets/test/InputmethodEngineJsunit.test.ets
浏览文件 @
8051adc2
...
...
@@ -64,12 +64,20 @@ export default function inputMethodEngineJsunit() {
});
mKeyboardDelegate = inputMethodEngine.createKeyboardDelegate();
mKeyboardDelegate.on('keyDown', (keyEvent) => {
console.
log("inputMethodEngine beforeEach keyDown:" + keyEvent
);
console.
info("inputMethodEngine beforeEach keyDown:" + keyEvent.keyCode
);
expect(keyEvent.keyCode).assertEqual('1');
console.info("inputMethodEngine beforeEach keyDown:" + keyEvent.keyAction);
expect(keyEvent.keyAction).assertEqual('1');
});
mKeyboardDelegate.on('keyUp', (keyEvent) => {
console.
log
("inputMethodEngine beforeEach keyUp:" + keyEvent.keyCode);
console.
info
("inputMethodEngine beforeEach keyUp:" + keyEvent.keyCode);
expect(keyEvent.keyCode).assertEqual('1');
console.info("inputMethodEngine beforeEach keyDown:" + keyEvent.keyAction);
expect(keyEvent.keyAction).assertEqual('0');
});
mKeyboardDelegate.on('cursorContextChange', (x, y, height) => {
console.log("inputMethodEngine beforeEach cursorContextChange x:" + x);
...
...
@@ -271,9 +279,12 @@ export default function inputMethodEngineJsunit() {
});
it('inputMethodEngine_test_027', 0, async function (done) {
let rect = await Utils.getComponentRect('TextInput')
console.info("[inputMethodEngine_test_027] rectInfo is " + rect);
console.info("[inputMethodEngine_test_027] rectInfo is " + JSON.stringify(rect));
let x_value = rect.left + (rect.right - rect.left) / 10
let y_value = rect.top + (rect.bottom - rect.top) / 10
console.info("[inputMethodEngine_test_027] onTouch location is: " + "[x]=== " + x_value + " [y]===" + y_value);
let point: TouchObject = {
...
...
@@ -433,7 +444,7 @@ export default function inputMethodEngineJsunit() {
expect(textInputClient == null).assertEqual(true);
} else {
textInputClient.getEditorAttribute(1, (editorAttribute) => {
console.log("inputMethodEngine_test_03
6
getEditorAttribute:" + value);
console.log("inputMethodEngine_test_03
8
getEditorAttribute:" + value);
expect(editorAttribute.inputPattern).assertEqual(1);
expect(editorAttribute.enterKeyType).assertEqual(1);
});
...
...
@@ -447,11 +458,11 @@ export default function inputMethodEngineJsunit() {
} else {
let promise = textInputClient.getEditorAttribute();
promise.then(res => {
console.info("inputMethodEngine_test_03
7
getEditorAttribute promise result-----" + JSON.stringify(res));
console.info("inputMethodEngine_test_03
9
getEditorAttribute promise result-----" + JSON.stringify(res));
expect(res.inputPattern).assertEqual(1);
expect(res.enterKeyType).assertEqual(1);
}).catch(err => {
console.info("inputMethodEngine_test_03
7
getEditorAttribute promise error----" + JSON.stringify(err));
console.info("inputMethodEngine_test_03
9
getEditorAttribute promise error----" + JSON.stringify(err));
expect().assertFail();
});
}
...
...
@@ -476,10 +487,38 @@ export default function inputMethodEngineJsunit() {
} else {
let promise = kbController.hideKeyboard();
promise.then(res => {
console.info("inputMethodEngine_test_0
37
hideKeyboard promise result-----" + JSON.stringify(res));
console.info("inputMethodEngine_test_0
41
hideKeyboard promise result-----" + JSON.stringify(res));
expect(1 == 1).assertTrue();
}).catch(err => {
console.info("inputMethodEngine_test_037 hideKeyboard promise error----" + JSON.stringify(err));
console.info("inputMethodEngine_test_041 hideKeyboard promise error----" + JSON.stringify(err));
expect().assertFail();
});
}
done();
});
it('inputMethodEngine_test_042', 0, async function (done) {
if (textInputClient == null) {
expect(textInputClient == null).assertEqual(true);
} else {
textInputClient.getBackward(1, (value) => {
console.info("inputMethodEngine_test_042 getBackward:" + value);
expect(value).assertEqual(true);
});
}
done();
});
it('inputMethodEngine_test_043', 0, async function (done) {
if (textInputClient == null) {
expect(textInputClient == null).assertEqual(true);
} else {
let promise = textInputClient.getBackward(1);
promise.then(res => {
console.info("inputMethodEngine_test_043 getBackward promise result-----" + JSON.stringify(res));
expect(res).assertEqual(true);
}).catch(err => {
console.info("inputMethodEngine_test_043 getBackward promise error----" + JSON.stringify(err));
expect().assertFail();
});
}
...
...
miscservices/InputMethodTest_ets/local.properties
0 → 100644
浏览文件 @
8051adc2
# This file is automatically generated by DevEco Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file should *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# For customization when using a Version Control System, please read the header note.
sdk.dir
=
C:/Users/lwx1095534/AppData/Local/OpenHarmony/Sdk
nodejs.dir
=
D:/DevEco Studio/tools/nodejs
npm.dir
=
D:/DevEco Studio/tools/nodejs
\ No newline at end of file
miscservices/InputMethodTest_ets/package-lock.json
0 → 100644
浏览文件 @
8051adc2
{
"lockfileVersion"
:
1
}
miscservices/actspasteboardjsapitest/.idea/.deveco/project.cache.json
0 → 100644
浏览文件 @
8051adc2
{
"BuildOptions"
:{},
"CommonInfo"
:{
"project.ide.version"
:
"3.0.0.900"
}
}
\ No newline at end of file
miscservices/actspasteboardjsapitest/.idea/.gitignore
0 → 100644
浏览文件 @
8051adc2
# Default ignored files
/shelf/
/workspace.xml
miscservices/actspasteboardjsapitest/.idea/actspasteboardjsapitest.iml
0 → 100644
浏览文件 @
8051adc2
<?xml version="1.0" encoding="UTF-8"?>
<module
type=
"EMPTY_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<content
url=
"file://$MODULE_DIR$"
/>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</module>
\ No newline at end of file
miscservices/actspasteboardjsapitest/.idea/modules.xml
0 → 100644
浏览文件 @
8051adc2
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectModuleManager"
>
<modules>
<module
fileurl=
"file://$PROJECT_DIR$/.idea/actspasteboardjsapitest.iml"
filepath=
"$PROJECT_DIR$/.idea/actspasteboardjsapitest.iml"
/>
</modules>
</component>
</project>
\ No newline at end of file
miscservices/actspasteboardjsapitest/.idea/vcs.xml
0 → 100644
浏览文件 @
8051adc2
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$/../.."
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
miscservices/actspasteboardjsapitest/entry/src/main/js/default/test/PasteBoardJsunit.test.js
浏览文件 @
8051adc2
此差异已折叠。
点击以展开。
miscservices/actspasteboardjsapitest/local.properties
0 → 100644
浏览文件 @
8051adc2
# This file is automatically generated by DevEco Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file should *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# For customization when using a Version Control System, please read the header note.
sdk.dir
=
C:/Users/lwx1095534/AppData/Local/OpenHarmony/Sdk
nodejs.dir
=
D:/DevEco Studio/tools/nodejs
npm.dir
=
D:/DevEco Studio/tools/nodejs
\ No newline at end of file
miscservices/actspasteboardjsapitest/package-lock.json
0 → 100644
浏览文件 @
8051adc2
{
"lockfileVersion"
:
1
}
miscservices/wallpaper_js/src/main/js/Test/Wallpaper/WallpaperJsunit.test.js
浏览文件 @
8051adc2
...
...
@@ -74,6 +74,12 @@ describe('WallpaperJsunitTest', function () {
await
wallpaper
.
getColors
(
WALLPAPER_SYSTEM
,
function
(
err
,
data
)
{
console
.
info
(
'
wallpaperXTS ===> testGetColorsCallbackSystem err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
wallpaperXTS ===> testGetColorsCallbackSystem data :
'
+
JSON
.
stringify
(
data
));
console
.
info
(
'
wallpaperXTS ===> testGetColorsCallbackSystem data :
'
+
data
[
0
][
0
]);
console
.
info
(
'
wallpaperXTS ===> testGetColorsCallbackSystem data :
'
+
data
[
0
][
1
]);
console
.
info
(
'
wallpaperXTS ===> testGetColorsCallbackSystem data :
'
+
data
[
0
][
2
]);
console
.
info
(
'
wallpaperXTS ===> testGetColorsCallbackSystem data :
'
+
data
[
0
][
3
]);
if
(
err
)
{
expect
(
null
).
assertFail
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录