Bug 1491269 - Follow-up: fix testTaskView.js failure by remembering the number of tasks before clicking delete; r=darktrojan
This commit is contained in:
Родитель
16003487aa
Коммит
e5518933ba
|
@ -155,8 +155,8 @@ function testTaskView() {
|
||||||
controller.assertJSProperty(toolTipStatus, "textContent", "Completed");
|
controller.assertJSProperty(toolTipStatus, "textContent", "Completed");
|
||||||
|
|
||||||
// Delete task and verify.
|
// Delete task and verify.
|
||||||
|
countBefore = taskTreeNode.mTaskArray.length;
|
||||||
controller.click(eid("calendar-delete-task-button"));
|
controller.click(eid("calendar-delete-task-button"));
|
||||||
countBefore = countAfter;
|
|
||||||
controller.waitFor(() => {
|
controller.waitFor(() => {
|
||||||
countAfter = taskTreeNode.mTaskArray.length;
|
countAfter = taskTreeNode.mTaskArray.length;
|
||||||
return countAfter == (countBefore - 1);
|
return countAfter == (countBefore - 1);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче