Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5c889439
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看板
未验证
提交
5c889439
编写于
7月 04, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 04, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9204 【杂散】【输入法】优化inputmethd用例公共事件通讯不及时,用例偶现失败
Merge pull request !9204 from 张育帅/master
上级
826e4d2d
c751250d
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
502 addition
and
477 deletion
+502
-477
inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodAbility.test.ets
...ngine/entry/src/main/ets/test/inputMethodAbility.test.ets
+240
-240
inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodEngine.test.ets
...Engine/entry/src/main/ets/test/inputMethodEngine.test.ets
+128
-132
inputmethod/InputMethodWindManage/entry/src/main/ets/test/InputMethodWindManage.test.ets
...ge/entry/src/main/ets/test/InputMethodWindManage.test.ets
+105
-105
request/newRequestAuthorityTest/entry/src/main/ets/test/requestDownload.test.ets
...rityTest/entry/src/main/ets/test/requestDownload.test.ets
+29
-0
未找到文件。
inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodAbility.test.ets
浏览文件 @
5c889439
...
...
@@ -455,12 +455,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_028 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_028 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
28
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_029'
,
0
,
async
function
(
done
)
{
...
...
@@ -510,12 +510,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_029 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_029 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
29
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
)
})
});
it
(
'inputMethodAbility_test_030'
,
0
,
async
function
(
done
)
{
...
...
@@ -565,12 +565,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_030 subscriber data:"
+
JSON
.
stringify
(
data
))
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_030 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
30
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_031'
,
0
,
async
function
(
done
)
{
...
...
@@ -620,12 +620,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_031 subscriber data:"
+
JSON
.
stringify
(
data
))
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_031 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
31
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_032'
,
0
,
async
function
(
done
)
{
...
...
@@ -675,12 +675,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_032 subscriber data:"
+
JSON
.
stringify
(
data
))
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_032 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
32
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_033'
,
0
,
async
function
(
done
)
{
...
...
@@ -730,12 +730,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_033 subscriber data:"
+
JSON
.
stringify
(
data
))
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_033 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
33
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
)
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_034'
,
0
,
async
function
(
done
)
{
...
...
@@ -785,12 +785,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_034 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_034 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
34
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_035'
,
0
,
async
function
(
done
)
{
...
...
@@ -840,12 +840,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_035 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_035 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
35
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_036'
,
0
,
async
function
(
done
)
{
...
...
@@ -895,12 +895,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_036 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_036 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
36
};
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);;
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_037'
,
0
,
async
function
(
done
)
{
...
...
@@ -950,12 +950,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_037 subscriber data:"
+
JSON
.
stringify
(
data
))
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_037 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
37
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_038'
,
0
,
async
function
(
done
)
{
...
...
@@ -1005,12 +1005,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_038 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_038 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
38
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_039'
,
0
,
async
function
(
done
)
{
...
...
@@ -1060,12 +1060,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_039 subscriber data:"
+
JSON
.
stringify
(
data
))
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_039 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
39
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_040'
,
0
,
async
function
(
done
)
{
...
...
@@ -1115,12 +1115,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_040 subscriber data:"
+
JSON
.
stringify
(
data
))
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_040 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
40
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_041'
,
0
,
async
function
(
done
)
{
...
...
@@ -1170,12 +1170,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_041 subscriber data:"
+
JSON
.
stringify
(
data
))
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_041 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
41
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_042'
,
0
,
async
function
(
done
)
{
...
...
@@ -1225,12 +1225,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_042 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_042 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
42
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_043'
,
0
,
async
function
(
done
)
{
...
...
@@ -1280,12 +1280,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_043 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_043 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
43
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_044'
,
0
,
async
function
(
done
)
{
...
...
@@ -1342,12 +1342,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_045 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_045 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
45
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_046'
,
0
,
async
function
(
done
)
{
...
...
@@ -1397,12 +1397,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_046 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_046 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
46
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_047'
,
0
,
async
function
(
done
)
{
...
...
@@ -1452,12 +1452,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_047 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_047 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
47
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_048'
,
0
,
async
function
(
done
)
{
...
...
@@ -1507,12 +1507,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_048 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_048 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
48
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_049'
,
0
,
async
function
(
done
)
{
...
...
@@ -1562,12 +1562,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_049 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_049 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
49
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_050'
,
0
,
async
function
(
done
)
{
...
...
@@ -1617,12 +1617,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_050 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_050 subscriber finish"
)
})
var
commonEventPublishData
=
{
code
:
50
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_070'
,
0
,
async
function
(
done
)
{
...
...
@@ -1671,13 +1671,13 @@ export default function inputMethodAbility() {
subscriber
=
data
;
console
.
info
(
"====>inputMethodAbility_test_070 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_070 subscriber finish"
)
})
console
.
info
(
"====>inputMethodAbility_test_070 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
70
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_071'
,
0
,
async
function
(
done
)
{
...
...
@@ -1726,13 +1726,13 @@ export default function inputMethodAbility() {
subscriber
=
data
;
console
.
info
(
"====>inputMethodAbility_test_071 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_071 subscriber finish"
)
})
console
.
info
(
"====>inputMethodAbility_test_071 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
71
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_072'
,
0
,
async
function
(
done
)
{
...
...
@@ -1781,13 +1781,13 @@ export default function inputMethodAbility() {
subscriber
=
data
;
console
.
info
(
"====>inputMethodAbility_test_072 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_072 subscriber finish"
)
})
console
.
info
(
"====>inputMethodAbility_test_072 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
72
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_073'
,
0
,
async
function
(
done
)
{
...
...
@@ -1840,13 +1840,13 @@ export default function inputMethodAbility() {
subscriber
=
data
;
console
.
info
(
"====>inputMethodAbility_test_073 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_073 subscriber finish"
)
})
console
.
info
(
"====>inputMethodAbility_test_073 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
73
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_074'
,
0
,
async
function
(
done
)
{
...
...
@@ -1903,12 +1903,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_074 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_074 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
74
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_101'
,
0
,
async
function
(
done
)
{
...
...
@@ -1958,12 +1958,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_101 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_101 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
101
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_102'
,
0
,
async
function
(
done
)
{
...
...
@@ -2013,12 +2013,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_102 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_102 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
102
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_103'
,
0
,
async
function
(
done
)
{
...
...
@@ -2068,12 +2068,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_103 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_103 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
103
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_104'
,
0
,
async
function
(
done
)
{
...
...
@@ -2123,12 +2123,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_104 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_104 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
104
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_105'
,
0
,
async
function
(
done
)
{
...
...
@@ -2178,12 +2178,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_105 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_105 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
105
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodAbility_test_106'
,
0
,
async
function
(
done
)
{
...
...
@@ -2233,12 +2233,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_106 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_106 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
106
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_onSelectByRange_0110'
,
0
,
async
function
(
done
)
{
...
...
@@ -2267,17 +2267,6 @@ export default function inputMethodAbility() {
}
}
var
commonEventSubscribeInfo
=
{
events
:
[
"Sub_Misc_inputMethod_onSelectByRange_0110"
]
}
var
subscriber
;
commonEventManager
.
createSubscriber
(
commonEventSubscribeInfo
)
.
then
((
data
)
=>
{
subscriber
=
data
;
console
.
info
(
"====>Sub_Misc_inputMethod_onSelectByRange_0110 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_onSelectByRange_0110 subscriber finish"
)
})
inputMethodController
.
on
(
"selectByRange"
,
async
(
range
)
=>
{
console
.
info
(
'====>Sub_Misc_inputMethod_onSelectByRange_0110 onSelectByRange start'
);
inputMethodController
.
off
(
"selectByRange"
);
...
...
@@ -2292,10 +2281,21 @@ export default function inputMethodAbility() {
}
});
var
commonEventSubscribeInfo
=
{
events
:
[
"Sub_Misc_inputMethod_onSelectByRange_0110"
]
}
var
subscriber
;
commonEventManager
.
createSubscriber
(
commonEventSubscribeInfo
)
.
then
((
data
)
=>
{
subscriber
=
data
;
console
.
info
(
"====>Sub_Misc_inputMethod_onSelectByRange_0110 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_onSelectByRange_0110 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
110
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_onSelectByMovement_0120'
,
0
,
async
function
(
done
)
{
...
...
@@ -2324,17 +2324,6 @@ export default function inputMethodAbility() {
}
}
var
commonEventSubscribeInfo
=
{
events
:
[
"Sub_Misc_inputMethod_onSelectByMovement_0120"
]
}
var
subscriber
;
commonEventManager
.
createSubscriber
(
commonEventSubscribeInfo
)
.
then
((
data
)
=>
{
subscriber
=
data
;
console
.
info
(
"====>Sub_Misc_inputMethod_onSelectByMovement_0120 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_onSelectByMovement_0120 subscriber finish"
)
})
inputMethodController
.
on
(
"selectByMovement"
,
async
(
movement
)
=>
{
console
.
info
(
'====>Sub_Misc_inputMethod_onSelectByMovement_0120 onSelectByMovement start'
);
inputMethodController
.
off
(
"selectByMovement"
);
...
...
@@ -2348,10 +2337,21 @@ export default function inputMethodAbility() {
}
});
var
commonEventSubscribeInfo
=
{
events
:
[
"Sub_Misc_inputMethod_onSelectByMovement_0120"
]
}
var
subscriber
;
commonEventManager
.
createSubscriber
(
commonEventSubscribeInfo
)
.
then
((
data
)
=>
{
subscriber
=
data
;
console
.
info
(
"====>Sub_Misc_inputMethod_onSelectByMovement_0120 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_onSelectByMovement_0120 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
120
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_offSelectByRange_0130'
,
0
,
async
function
(
done
)
{
...
...
@@ -2380,17 +2380,6 @@ export default function inputMethodAbility() {
}
}
var
commonEventSubscribeInfo
=
{
events
:
[
"Sub_Misc_inputMethod_offSelectByRange_0130"
]
}
var
subscriber
;
commonEventManager
.
createSubscriber
(
commonEventSubscribeInfo
)
.
then
((
data
)
=>
{
subscriber
=
data
;
console
.
info
(
"====>Sub_Misc_inputMethod_offSelectByRange_0130 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_offSelectByRange_0130 subscriber finish"
)
})
let
count
=
0
;
inputMethodController
.
on
(
"selectByRange"
,
async
(
movement
)
=>
{
console
.
info
(
'====>Sub_Misc_inputMethod_offSelectByRange_0130 offSelectByRange start'
);
...
...
@@ -2413,10 +2402,21 @@ export default function inputMethodAbility() {
}
},
500
);
var
commonEventSubscribeInfo
=
{
events
:
[
"Sub_Misc_inputMethod_offSelectByRange_0130"
]
}
var
subscriber
;
commonEventManager
.
createSubscriber
(
commonEventSubscribeInfo
)
.
then
((
data
)
=>
{
subscriber
=
data
;
console
.
info
(
"====>Sub_Misc_inputMethod_offSelectByRange_0130 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_offSelectByRange_0130 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
130
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_offSelectByMovement_0140'
,
0
,
async
function
(
done
)
{
...
...
@@ -2445,17 +2445,6 @@ export default function inputMethodAbility() {
}
}
var
commonEventSubscribeInfo
=
{
events
:
[
"Sub_Misc_inputMethod_offSelectByMovement_0140"
]
}
var
subscriber
;
commonEventManager
.
createSubscriber
(
commonEventSubscribeInfo
)
.
then
((
data
)
=>
{
subscriber
=
data
;
console
.
info
(
"====>Sub_Misc_inputMethod_offSelectByMovement_0140 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_offSelectByMovement_0140 subscriber finish"
)
})
let
count
=
0
;
inputMethodController
.
on
(
"selectByMovement"
,
async
(
movement
)
=>
{
console
.
info
(
'====>Sub_Misc_inputMethod_offSelectByMovement_0140 offSelectByMovement start'
);
...
...
@@ -2478,10 +2467,21 @@ export default function inputMethodAbility() {
}
},
500
);
var
commonEventSubscribeInfo
=
{
events
:
[
"Sub_Misc_inputMethod_offSelectByMovement_0140"
]
}
var
subscriber
;
commonEventManager
.
createSubscriber
(
commonEventSubscribeInfo
)
.
then
((
data
)
=>
{
subscriber
=
data
;
console
.
info
(
"====>Sub_Misc_inputMethod_offSelectByMovement_0140 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_offSelectByMovement_0140 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
140
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_onImeChange_0150'
,
0
,
async
function
(
done
)
{
...
...
@@ -2586,12 +2586,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>inputMethodAbility_test_091 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodAbility_test_091 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
91
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_sendExtendAction_0170'
,
0
,
async
function
(
done
)
{
...
...
@@ -2641,12 +2641,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_sendExtendAction_0170 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_sendExtendAction_0170 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
170
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_sendExtendAction_0180'
,
0
,
async
function
(
done
)
{
...
...
@@ -2696,12 +2696,12 @@ export default function inputMethodAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_sendExtendAction_0180 subscriber data:"
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_sendExtendAction_0180 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
180
}
commonEventManager
.
publish
(
'test'
,
commonEventPublishData
,
publishCallback
);
})
});
});
...
...
inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodEngine.test.ets
浏览文件 @
5c889439
...
...
@@ -241,12 +241,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_028 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_028 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
28
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_029'
,
0
,
async
function
(
done
)
{
...
...
@@ -297,12 +297,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_029 subscriber data:"
+
JSON
.
stringify
(
data
))
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_029 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
29
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_030'
,
0
,
async
function
(
done
)
{
...
...
@@ -353,12 +353,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_030 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_030 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
30
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_031'
,
0
,
async
function
(
done
)
{
...
...
@@ -408,12 +408,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_031 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_031 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
31
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_032'
,
0
,
async
function
(
done
)
{
...
...
@@ -463,12 +463,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_032 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_032 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
32
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_033'
,
0
,
async
function
(
done
)
{
...
...
@@ -517,17 +517,16 @@ export default function inputMethodEngineJSUnit() {
subscriber
=
data
;
console
.
debug
(
"====>inputMethodEngine_test_033 subscriber data:"
+
JSON
.
stringify
(
data
))
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_033 subscriber finish"
)
})
console
.
debug
(
"====>inputMethodEngine_test_033 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
33
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
)
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_034'
,
0
,
async
function
(
done
)
{
function
unSubscriberCallback
(
err
)
{
console
.
debug
(
"====>inputMethodEngine_test_034 unSubscriberCallback start"
);
if
(
err
)
{
...
...
@@ -574,12 +573,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_034 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_034 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
34
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_035'
,
0
,
async
function
(
done
)
{
...
...
@@ -630,12 +629,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_035 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_035 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
35
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_036'
,
0
,
async
function
(
done
)
{
...
...
@@ -686,12 +685,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_036 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_036 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
36
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_037'
,
0
,
async
function
(
done
)
{
...
...
@@ -742,12 +741,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_037 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_037 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
37
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_038'
,
0
,
async
function
(
done
)
{
...
...
@@ -798,12 +797,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_038 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_038 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
38
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_039'
,
0
,
async
function
(
done
)
{
...
...
@@ -854,12 +853,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_039 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_039 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
39
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_040'
,
0
,
async
function
(
done
)
{
...
...
@@ -910,12 +909,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_040 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_040 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
40
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_041'
,
0
,
async
function
(
done
)
{
...
...
@@ -966,12 +965,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_041 subscriber data:"
+
JSON
.
stringify
(
data
))
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_041 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
41
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_042'
,
0
,
async
function
(
done
)
{
...
...
@@ -1022,16 +1021,15 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_042 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_042 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
42
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_043'
,
0
,
async
function
(
done
)
{
function
unSubscriberCallback
(
err
)
{
console
.
debug
(
"====>inputMethodEngine_test_043 unSubscriberCallback start"
);
if
(
err
)
{
...
...
@@ -1078,16 +1076,15 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_043 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_043 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
43
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_049'
,
0
,
async
function
(
done
)
{
function
unSubscriberCallback
(
err
)
{
console
.
debug
(
"====>inputMethodEngine_test_049 unSubscriberCallback start"
);
if
(
err
)
{
...
...
@@ -1133,17 +1130,16 @@ export default function inputMethodEngineJSUnit() {
subscriber
=
data
;
console
.
debug
(
"====>inputMethodEngine_test_049 subscriber data:"
+
JSON
.
stringify
(
data
))
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_049 subscriber finish"
)
})
console
.
debug
(
"====>inputMethodEngine_test_049 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
49
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_050'
,
0
,
async
function
(
done
)
{
function
unSubscriberCallback
(
err
)
{
console
.
debug
(
"====>inputMethodEngine_test_050 unSubscriberCallback start"
);
if
(
err
)
{
...
...
@@ -1190,12 +1186,12 @@ export default function inputMethodEngineJSUnit() {
console
.
debug
(
"====>inputMethodEngine_test_050 subscriber data:"
+
JSON
.
stringify
(
data
));
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
debug
(
"====>inputMethodEngine_test_050 subscriber finish"
);
})
var
commonEventPublishData
=
{
code
:
50
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_071'
,
0
,
async
function
(
done
)
{
...
...
@@ -1244,13 +1240,13 @@ export default function inputMethodEngineJSUnit() {
subscriber
=
data
;
console
.
info
(
"====>inputMethodEngine_test_071 subscriber data:"
+
JSON
.
stringify
(
data
))
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodEngine_test_071 subscriber finish"
)
})
console
.
info
(
"====>inputMethodEngine_test_071 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
71
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
)
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_072'
,
0
,
async
function
(
done
)
{
...
...
@@ -1299,13 +1295,13 @@ export default function inputMethodEngineJSUnit() {
subscriber
=
data
;
console
.
info
(
"====>inputMethodEngine_test_072 subscriber data:"
+
JSON
.
stringify
(
data
))
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodEngine_test_072 subscriber finish"
)
})
console
.
info
(
"====>inputMethodEngine_test_072 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
72
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
)
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_073'
,
0
,
async
function
(
done
)
{
...
...
@@ -1358,13 +1354,13 @@ export default function inputMethodEngineJSUnit() {
subscriber
=
data
;
console
.
info
(
"====>inputMethodEngine_test_073 subscriber data:"
+
JSON
.
stringify
(
data
))
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodEngine_test_073 subscriber finish"
)
})
console
.
info
(
"====>inputMethodEngine_test_073 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
73
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
)
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_074'
,
0
,
async
function
(
done
)
{
...
...
@@ -1413,13 +1409,13 @@ export default function inputMethodEngineJSUnit() {
subscriber
=
data
;
console
.
info
(
"====>inputMethodEngine_test_074 subscriber data:"
+
JSON
.
stringify
(
data
))
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodEngine_test_074 subscriber finish"
)
})
console
.
info
(
"====>inputMethodEngine_test_074 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
74
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
)
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_076'
,
0
,
async
function
(
done
)
{
...
...
@@ -1468,13 +1464,13 @@ export default function inputMethodEngineJSUnit() {
subscriber
=
data
;
console
.
info
(
"====>inputMethodEngine_test_076 subscriber data:"
+
JSON
.
stringify
(
data
))
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodEngine_test_076 subscriber finish"
)
})
console
.
info
(
"====>inputMethodEngine_test_076 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
76
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
)
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'inputMethodEngine_test_077'
,
0
,
async
function
(
done
)
{
...
...
@@ -1523,13 +1519,13 @@ export default function inputMethodEngineJSUnit() {
subscriber
=
data
;
console
.
info
(
"====>inputMethodEngine_test_077 subscriber data:"
+
JSON
.
stringify
(
data
))
commoneventmanager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>inputMethodEngine_test_077 subscriber finish"
)
})
console
.
info
(
"====>inputMethodEngine_test_077 subscriber finish"
);
var
commonEventPublishData
=
{
code
:
77
}
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
)
commoneventmanager
.
publish
(
'test1'
,
commonEventPublishData
,
publishCallback
);
})
});
})
...
...
inputmethod/InputMethodWindManage/entry/src/main/ets/test/InputMethodWindManage.test.ets
浏览文件 @
5c889439
...
...
@@ -126,12 +126,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_createPanelCallback_0010 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_createPanelCallback_0010 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
10
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_createPanelPromise_0020'
,
0
,
async
function
(
done
)
{
...
...
@@ -178,12 +178,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_createPanelPromise_0020 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_createPanelPromise_0020 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
20
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_destroyPanelCallback_0030'
,
0
,
async
function
(
done
)
{
...
...
@@ -230,12 +230,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_destroyPanelCallback_0030 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_destroyPanelCallback_0030 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
30
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_destroyPanelPromise_0040'
,
0
,
async
function
(
done
)
{
...
...
@@ -282,12 +282,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_destroyPanelPromise_0040 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_destroyPanelPromise_0040 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
40
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_setUiContentCallback_0050'
,
0
,
async
function
(
done
)
{
...
...
@@ -334,12 +334,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_setUiContentCallback_0050 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_setUiContentCallback_0050 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
50
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_setUiContentPromise_0060'
,
0
,
async
function
(
done
)
{
...
...
@@ -386,12 +386,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_setUiContentPromise_0060 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_setUiContentPromise_0060 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
60
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_setUiContentCallback_0070'
,
0
,
async
function
(
done
)
{
...
...
@@ -438,12 +438,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_setUiContentCallback_0070 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_setUiContentCallback_0070 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
70
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_setUiContentPromise_0080'
,
0
,
async
function
(
done
)
{
...
...
@@ -490,12 +490,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_setUiContentPromise_0080 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_setUiContentPromise_0080 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
80
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_resizeCallback_0090'
,
0
,
async
function
(
done
)
{
...
...
@@ -542,12 +542,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_resizeCallback_0090 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_resizeCallback_0090 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
90
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_resizePromise_0100'
,
0
,
async
function
(
done
)
{
...
...
@@ -594,12 +594,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_resizePromise_0100 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_resizePromise_0100 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
100
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_moveToCallback_0110'
,
0
,
async
function
(
done
)
{
...
...
@@ -646,12 +646,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_moveToCallback_0110 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_moveToCallback_0110 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
110
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_moveToPromise_0120'
,
0
,
async
function
(
done
)
{
...
...
@@ -698,12 +698,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_moveToPromise_0120 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_moveToPromise_0120 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
120
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_showCallback_0130'
,
0
,
async
function
(
done
)
{
...
...
@@ -750,12 +750,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_showCallback_0130 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_showCallback_0130 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
130
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_hideCallback_0150'
,
0
,
async
function
(
done
)
{
...
...
@@ -802,12 +802,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_hideCallback_0150 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_hideCallback_0150 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
150
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_showPromise_0140'
,
0
,
async
function
(
done
)
{
...
...
@@ -854,12 +854,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_showPromise_0140 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_showPromise_0140 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
140
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_hidePromise_0160'
,
0
,
async
function
(
done
)
{
...
...
@@ -906,12 +906,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_hidePromise_0160 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_hidePromise_0160 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
160
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_onShow_0170'
,
0
,
async
function
(
done
)
{
...
...
@@ -958,12 +958,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_onShow_0170 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_onShow_0170 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
170
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_onHide_0180'
,
0
,
async
function
(
done
)
{
...
...
@@ -1010,12 +1010,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_onHide_0180 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_onHide_0180 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
180
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_offShow_0190'
,
0
,
async
function
(
done
)
{
...
...
@@ -1062,12 +1062,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_offShow_0190 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_offShow_0190 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
190
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_Panel_offHide_0200'
,
0
,
async
function
(
done
)
{
...
...
@@ -1114,12 +1114,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_offHide_0200 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_offHide_0200 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
200
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
it
(
'Sub_Misc_inputMethod_onImeShow_0201'
,
0
,
async
function
(
done
)
{
...
...
@@ -1322,12 +1322,12 @@ export default function inputMethodWindManageAbility() {
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_changeFlag_0210 subscribe data: "
+
JSON
.
stringify
(
data
));
commonEventManager
.
subscribe
(
subscriber
,
subscriberCallback
);
console
.
info
(
"====>Sub_Misc_inputMethod_Panel_changeFlag_0210 subscribe finish===="
);
})
var
commonEventPublishData
=
{
code
:
210
}
commonEventManager
.
publish
(
"test"
,
commonEventPublishData
,
publishCallback
);
})
});
...
...
request/newRequestAuthorityTest/entry/src/main/ets/test/requestDownload.test.ets
浏览文件 @
5c889439
...
...
@@ -86,6 +86,35 @@ export default function requestDownloadJSUnit() {
done();
})
/**
* @tc.number SUB_MISC_REQUEST_DOWNLOAD_broken_0010
* @tc.name T download task
* @tc.desc Test requestUploadTest API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it('SUB_MISC_REQUEST_DOWNLOAD_broken_0010', 0, async function (done) {
console.info("====>-----------------------SUB_MISC_REQUEST_DOWNLOAD_broken_0010 is starting-----------------------");
try {
console.info("====>SUB_MISC_REQUEST_DOWNLOAD_broken_0010 request.agent.Broken.OTHERS: " + request.agent.Broken.OTHERS);
expect(request.agent.Broken.OTHERS).assertEqual(255);
console.info("====>SUB_MISC_REQUEST_DOWNLOAD_broken_0010 request.agent.Broken.DISCONNECTED: " + request.agent.Broken.DISCONNECTED);
expect(request.agent.Broken.DISCONNECTED).assertEqual(0);
console.info("====>SUB_MISC_REQUEST_DOWNLOAD_broken_0010 request.agent.Broken.TIMEOUT: " + request.agent.Broken.TIMEOUT);
expect(request.agent.Broken.TIMEOUT).assertEqual(16);
console.info("====>SUB_MISC_REQUEST_DOWNLOAD_broken_0010 request.agent.Broken.PROTOCOL: " + request.agent.Broken.PROTOCOL);
expect(request.agent.Broken.PROTOCOL).assertEqual(32);
console.info("====>SUB_MISC_REQUEST_DOWNLOAD_broken_0010 request.agent.Broken.FSIO: " + request.agent.Broken.FSIO);
expect(request.agent.Broken.FSIO).assertEqual(64);
} catch (err) {
console.error("====>SUB_MISC_REQUEST_DOWNLOAD_broken_0010 error: " + err);
expect().assertFail();
}
console.info("====>-----------------------SUB_MISC_REQUEST_DOWNLOAD_broken_0010 end-----------------------");
done();
});
/**
* @tc.number SUB_Misc_REQUEST_Create_Download_Callback_0010
* @tc.desc Starts a download session.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录