提交 21e5996d 编写于 作者: T tianwenzhe

change bug

Signed-off-by: Ntian-wenzhe411 <tianwenzhe2@huawei.com>
上级 a0a87143
...@@ -25,7 +25,7 @@ struct CustomContainerUser { ...@@ -25,7 +25,7 @@ struct CustomContainerUser {
@State StepTips: string = '操作步骤:根据操作提示点击输入框等待键盘加载'+'\n'+'预期结果:输入键盘弹出时延小于1000ms测试通过'; @State StepTips: string = '操作步骤:根据操作提示点击输入框等待键盘加载'+'\n'+'预期结果:输入键盘弹出时延小于1000ms测试通过';
@State Vue: boolean = false; @State Vue: boolean = false;
@State StartEnable: boolean = true; @State StartEnable: boolean = true;
@State time: string = '0'; @State time: number = 0;
scroller: Scroller = new Scroller(); scroller: Scroller = new Scroller();
async aboutToAppear(){ async aboutToAppear(){
await FirstDialog.ChooseDialog(this.StepTips,this.name); await FirstDialog.ChooseDialog(this.StepTips,this.name);
...@@ -86,10 +86,11 @@ struct CustomContainerUser { ...@@ -86,10 +86,11 @@ struct CustomContainerUser {
let report = globalThis.resultNum; let report = globalThis.resultNum;
let head = report.indexOf(":"); let head = report.indexOf(":");
this.time = report.substring(head+1); this.time = report.substring(head+1);
let time = parseFloat(this.time); // let time = parseFloat(this.time)
let time = this.time;
if( 0 < time && time < 1000 ) { if( 0 < time && time < 1000 ) {
this.Vue = true; this.Vue = true;
}else if ( isNaN(this.time )){ } else if ( isNaN(this.time) ){
this.time = -1000; this.time = -1000;
} }
globalThis.HideFloatingWindow(); globalThis.HideFloatingWindow();
......
...@@ -24,7 +24,7 @@ struct CustomContainerUser { ...@@ -24,7 +24,7 @@ struct CustomContainerUser {
@State StepTips: string = '操作步骤:根据操作提示点击键盘按键'+'\n'+'预期结果:键盘输入响应时延小于150ms测试通过'; @State StepTips: string = '操作步骤:根据操作提示点击键盘按键'+'\n'+'预期结果:键盘输入响应时延小于150ms测试通过';
@State Vue: boolean = false; @State Vue: boolean = false;
@State StartEnable: boolean = true; @State StartEnable: boolean = true;
@State time: string = '0'; @State time: number = 0;
scroller: Scroller = new Scroller(); scroller: Scroller = new Scroller();
async aboutToAppear(){ async aboutToAppear(){
await FirstDialog.ChooseDialog(this.StepTips,this.name); await FirstDialog.ChooseDialog(this.StepTips,this.name);
...@@ -85,9 +85,12 @@ struct CustomContainerUser { ...@@ -85,9 +85,12 @@ struct CustomContainerUser {
let report = globalThis.resultNum; let report = globalThis.resultNum;
let head = report.indexOf(":"); let head = report.indexOf(":");
this.time = report.substring(head+1); this.time = report.substring(head+1);
let time = parseFloat(this.time) // let time = parseFloat(this.time)
let time = this.time;
if( 0 < time && time < 150 ) { if( 0 < time && time < 150 ) {
this.Vue = true; this.Vue = true;
} else if ( isNaN(this.time) ){
this.time = -1000;
} }
globalThis.HideFloatingWindow(); globalThis.HideFloatingWindow();
}) })
......
...@@ -24,7 +24,7 @@ struct CustomContainerUser { ...@@ -24,7 +24,7 @@ struct CustomContainerUser {
@State StepTips: string = '操作步骤:根据操作提示滑动图库缩略表'+'\n'+'预期结果:滑动响应时延小于150ms测试通过'; @State StepTips: string = '操作步骤:根据操作提示滑动图库缩略表'+'\n'+'预期结果:滑动响应时延小于150ms测试通过';
@State Vue: boolean = false; @State Vue: boolean = false;
@State StartEnable: boolean = true; @State StartEnable: boolean = true;
@State time: string = '0'; @State time: number = 0;
scroller: Scroller = new Scroller(); scroller: Scroller = new Scroller();
async aboutToAppear(){ async aboutToAppear(){
await FirstDialog.ChooseDialog(this.StepTips,this.name); await FirstDialog.ChooseDialog(this.StepTips,this.name);
...@@ -85,9 +85,12 @@ struct CustomContainerUser { ...@@ -85,9 +85,12 @@ struct CustomContainerUser {
let report = globalThis.resultNum; let report = globalThis.resultNum;
let head = report.indexOf(":"); let head = report.indexOf(":");
this.time = report.substring(head+1); this.time = report.substring(head+1);
let time = parseFloat(this.time) // let time = parseFloat(this.time)
let time = this.time;
if( 0 < time && time < 150 ) { if( 0 < time && time < 150 ) {
this.Vue = true; this.Vue = true;
} else if ( isNaN(this.time) ){
this.time = -1000;
} }
globalThis.HideFloatingWindow(); globalThis.HideFloatingWindow();
}) })
......
...@@ -27,7 +27,7 @@ struct CustomContainerUser { ...@@ -27,7 +27,7 @@ struct CustomContainerUser {
@State StepTips: string = '操作步骤:根据操作提示打开后台任务'+'\n'+'预期结果:打开后台任务时延小于600ms测试通过'; @State StepTips: string = '操作步骤:根据操作提示打开后台任务'+'\n'+'预期结果:打开后台任务时延小于600ms测试通过';
@State Vue: boolean = false; @State Vue: boolean = false;
@State StartEnable: boolean = true; @State StartEnable: boolean = true;
@State time: string = '0'; @State time: number = 0;
scroller: Scroller = new Scroller(); scroller: Scroller = new Scroller();
async aboutToAppear(){ async aboutToAppear(){
await FirstDialog.ChooseDialog(this.StepTips,this.name); await FirstDialog.ChooseDialog(this.StepTips,this.name);
...@@ -85,9 +85,12 @@ struct CustomContainerUser { ...@@ -85,9 +85,12 @@ struct CustomContainerUser {
let report = globalThis.resultNum; let report = globalThis.resultNum;
let head = report.indexOf(":"); let head = report.indexOf(":");
this.time = report.substring(head+1); this.time = report.substring(head+1);
let time = parseFloat(this.time) // let time = parseFloat(this.time)
let time = this.time;
if( 0 < time && time < 600 ) { if( 0 < time && time < 600 ) {
this.Vue = true; this.Vue = true;
} else if ( isNaN(this.time) ){
this.time = -1000;
} }
globalThis.HideFloatingWindow(); globalThis.HideFloatingWindow();
}) })
......
...@@ -27,7 +27,7 @@ struct CustomContainerUser { ...@@ -27,7 +27,7 @@ struct CustomContainerUser {
@State StepTips: string = '操作步骤:根据操作提示下拉通知栏'+'\n'+'预期结果:下拉通知栏时延小于150ms测试通过'; @State StepTips: string = '操作步骤:根据操作提示下拉通知栏'+'\n'+'预期结果:下拉通知栏时延小于150ms测试通过';
@State Vue: boolean = false; @State Vue: boolean = false;
@State StartEnable: boolean = true; @State StartEnable: boolean = true;
@State time: string = '0'; @State time: number = 0;
scroller: Scroller = new Scroller(); scroller: Scroller = new Scroller();
async aboutToAppear(){ async aboutToAppear(){
await FirstDialog.ChooseDialog(this.StepTips,this.name); await FirstDialog.ChooseDialog(this.StepTips,this.name);
...@@ -85,9 +85,12 @@ struct CustomContainerUser { ...@@ -85,9 +85,12 @@ struct CustomContainerUser {
let report = globalThis.resultNum; let report = globalThis.resultNum;
let head = report.indexOf(":"); let head = report.indexOf(":");
this.time = report.substring(head+1); this.time = report.substring(head+1);
let time = parseFloat(this.time) // let time = parseFloat(this.time)
let time = this.time;
if( 0 < time && time < 150 ) { if( 0 < time && time < 150 ) {
this.Vue = true; this.Vue = true;
} else if ( isNaN(this.time) ){
this.time = -1000;
} }
globalThis.HideFloatingWindow(); globalThis.HideFloatingWindow();
}) })
......
...@@ -27,7 +27,7 @@ struct CustomContainerUser { ...@@ -27,7 +27,7 @@ struct CustomContainerUser {
@State StepTips: string = '操作步骤:根据操作提示打开任务管理器'+'\n'+'预期结果:打开任务管理器时延小于1000ms测试通过'; @State StepTips: string = '操作步骤:根据操作提示打开任务管理器'+'\n'+'预期结果:打开任务管理器时延小于1000ms测试通过';
@State Vue: boolean = false; @State Vue: boolean = false;
@State StartEnable: boolean = true; @State StartEnable: boolean = true;
@State time: string = '0'; @State time: number = 0;
scroller: Scroller = new Scroller(); scroller: Scroller = new Scroller();
async aboutToAppear(){ async aboutToAppear(){
await FirstDialog.ChooseDialog(this.StepTips,this.name); await FirstDialog.ChooseDialog(this.StepTips,this.name);
...@@ -85,9 +85,12 @@ struct CustomContainerUser { ...@@ -85,9 +85,12 @@ struct CustomContainerUser {
let report = globalThis.resultNum; let report = globalThis.resultNum;
let head = report.indexOf(":"); let head = report.indexOf(":");
this.time = report.substring(head+1); this.time = report.substring(head+1);
let time = parseFloat(this.time) // let time = parseFloat(this.time)
let time = this.time;
if( 0 < time && time < 1000 ) { if( 0 < time && time < 1000 ) {
this.Vue = true; this.Vue = true;
} else if ( isNaN(this.time) ){
this.time = -1000;
} }
globalThis.HideFloatingWindow(); globalThis.HideFloatingWindow();
}) })
......
...@@ -24,7 +24,7 @@ struct CustomContainerUser { ...@@ -24,7 +24,7 @@ struct CustomContainerUser {
@State StepTips: string = '操作步骤:根据操作提示点击图片等待加载'+'\n'+'预期结果:图片响应时延小于150ms测试通过'; @State StepTips: string = '操作步骤:根据操作提示点击图片等待加载'+'\n'+'预期结果:图片响应时延小于150ms测试通过';
@State Vue: boolean = false; @State Vue: boolean = false;
@State StartEnable: boolean = true; @State StartEnable: boolean = true;
@State time: string = '0'; @State time: number = 0;
scroller: Scroller = new Scroller(); scroller: Scroller = new Scroller();
async aboutToAppear(){ async aboutToAppear(){
await FirstDialog.ChooseDialog(this.StepTips,this.name); await FirstDialog.ChooseDialog(this.StepTips,this.name);
...@@ -81,13 +81,16 @@ struct CustomContainerUser { ...@@ -81,13 +81,16 @@ struct CustomContainerUser {
.enabled(!this.StartEnable) .enabled(!this.StartEnable)
.opacity(!this.StartEnable? 1 : 0.4) .opacity(!this.StartEnable? 1 : 0.4)
.onClick(() => { .onClick(() => {
this.StartEnable = !this.StartEnable this.StartEnable = !this.StartEnable;
let report = globalThis.resultNum; let report = globalThis.resultNum;
let head = report.indexOf(":"); let head = report.indexOf(":");
this.time = report.substring(head+1); this.time = report.substring(head+1);
let time = parseFloat(this.time) // let time = parseFloat(this.time)
let time = this.time;
if( 0 < time && time < 150 ) { if( 0 < time && time < 150 ) {
this.Vue = true; this.Vue = true;
} else if ( isNaN(this.time) ){
this.time = -1000;
} }
globalThis.HideFloatingWindow(); globalThis.HideFloatingWindow();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册