提交 25e62501 编写于 作者: Z zhangxinyue

bug fix

Signed-off-by: Nzhangxinyue <zhangxinyue38@huawei.com>
上级 95430a3d
......@@ -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 (result > 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.
先完成此消息的编辑!
想要评论请 注册