未验证 提交 fee29f0d 编写于 作者: O openharmony_ci 提交者: Gitee

!5731 修改部分xts失败用例

Merge pull request !5731 from 张馨月/OpenHarmony-3.2-Beta3
......@@ -255,8 +255,12 @@ struct Index {
console.log('error:' + error);
return;
}
this.text = result.toString();
console.log("usage is:" + this.text)
if (result > 2500000000) {
this.text = "true"
} else {
this.text = "false"
}
console.log("usage is:" + result)
})
setTimeout(()=>{
Utils.emitEvent(this.text,434)
......@@ -269,7 +273,12 @@ struct Index {
.then(quota=>{
console.log('usage: '+quota)
setTimeout(()=>{
Utils.emitEvent(quota.toString(),448)
if (quota > 2500000000) {
this.text = "true"
} else {
this.text = "false"
}
Utils.emitEvent(this.text,448)
},3000)
})
.catch(error=>{
......
......@@ -161,7 +161,7 @@ export default function webJsunit() {
*/
it('getOriginQuota',0,async function(done){
emitKey="emitGetOrigins";
Utils.registerEvent("getOriginQuota","2575722086",434,done);
Utils.registerEvent("getOriginQuota","true",434,done);
sendEventByKey('webcomponent',10,'');
})
/*
......@@ -241,7 +241,7 @@ export default function webJsunit() {
*/
it('getOriginQuotaPromise',0,async function(done){
emitKey="emitGetOriginsPromise";
Utils.registerEvent("getOriginQuotaPromise",'2575722086',448,done);
Utils.registerEvent("getOriginQuotaPromise",'true',448,done);
sendEventByKey('webcomponent',10,'');
})
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册