提交 67882193 编写于 作者: Y yupeng74@huawei.com

自动化测试错误修改和测试检查错误修改

Signed-off-by: Nyupeng74@huawei.com <yupeng74@huawei.com>
上级 3f65e220
......@@ -947,7 +947,6 @@ queryAppGroup(bundleName : string, callback: AsyncCallback&lt;number&gt;): void
} catch (error) {
console.log('BUNDLE_ACTIVE queryAppGroup throw error, code is: ' + error.code + ',message is: ' + error.message);
}
});
```
## usageStatistics.setAppGroup
......@@ -992,7 +991,7 @@ setAppGroup(bundleName: string, newGroup: GroupType): Promise&lt;void&gt;
```javascript
let bundleName = "com.example.deviceUsageStatistics";
let newGroup = bundleState.GroupType.ACTIVE_GROUP_DAILY;
let newGroup = usageStatistics.GroupType.DAILY_GROUP;
try{
usageStatistics.setAppGroup(bundleName, newGroup).then( () => {
......@@ -1042,7 +1041,7 @@ setAppGroup(bundleName: string, newGroup: GroupType, callback: AsyncCallback&lt;
```javascript
let bundleName = "com.example.deviceUsageStatistics";
let newGroup = bundleState.GroupType.ACTIVE_GROUP_DAILY;
let newGroup = usageStatistics.GroupType.DAILY_GROUP;
try{
usageStatistics.setAppGroup(bundleName, newGroup, (err) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册