@@ -293,17 +293,13 @@ step "mouseUp message"
293293 Don't forget to click the 'Apply' button when you have finished.
294294script
295295 on mouseUp
296- local tList
297-
298296 ask "Please enter a task"
299297
300- put the text of field "TaskList" into tList
301298 if field "TaskList" is empty then
302- put it into tList
299+ put it into field "TaskList"
303300 else
304- put return & it after tList
301+ put return & it after field "TaskList"
305302 end if
306- set the text of field "TaskList" to tList
307303 end mouseUp
308304action
309305 highlight script editor for widget "add"
@@ -361,11 +357,10 @@ end step
361357skip point
362358
363359step "Add task"
364- Click the 'Add' icon and enter the task "Buy milk", it will appear at the
365- bottom of the list.
360+ Click the 'Add' icon and enter a task, it will appear at the bottom of the list.
366361action
367362 highlight widget "add"
368- wait until the text of field "taskList" is "Buy milk"
363+ wait until the text of field "taskList" is changed with default "Buy milk"
369364 go to step "Return to Edit Mode"
370365end step
371366
@@ -456,14 +451,12 @@ step "Delete mouseUp"
456451 Don't forget to click the 'Apply' button when you have added the code.
457452script
458453 on mouseUp
459- local tList
460454
461455 answer "Do you want to delete this task?" with "Yes" and "No"
456+
462457 if it is "Yes" then
463- put the text of field "TaskList" into tList
464- delete line (the hilitedLine of field "taskList") of tList
465- set the text of field "TaskList" to tList
466- end if
458+ delete line (the hilitedLine of field "TaskList") of field "TaskList"
459+ end if
467460 end mouseUp
468461action
469462 highlight script editor for widget "delete"
@@ -488,7 +481,7 @@ step "Test Delete Task"
488481 The task will be deleted from the list.
489482action
490483 highlight widget "delete"
491- wait until the text of field "taskList" is ""
484+ wait until the text of field "taskList" is changed
492485 go to step "Return to Edit Mode 2"
493486end step
494487
@@ -546,7 +539,7 @@ script
546539action
547540 highlight script editor for stack "Mainstack"
548541 wait until stack "Mainstack" is scripted
549- go to step "Test step "
542+ go to step "preOpenStack code "
550543end step
551544
552545step "preOpenStack code"
0 commit comments