Closed Bug 1779967 Opened 3 years ago Closed 3 years ago

Rewrite test_form_submission* tests with async function

Categories

(Toolkit :: Form Manager, task, P3)

task

Tracking

()

RESOLVED WONTFIX

People

(Reporter: arai, Unassigned)

References

Details

Attachments

(2 obsolete files)

https://searchfox.org/mozilla-central/search?q=test%2Ftest_form_submission&path=&case=false&regexp=false

those test use function callback heavily and that causes unexpected execution order that causes bug 1481802 and bug 1685473.

The test needs to be rewritten with async function that explicitly waits for each operation, with single control flow.

See Also: → 1481802, 1685473

Use single async function that uses promise for waiting asynchronous things,
and explicitly wait for all of them.

Also fix test_form_submission_cap.html and test_form_submission_cap2.html
to properly use checkForSave and explicitly wait for the result.

Priority: -- → P3

FYI Bug 1642570 changes some of these tests. I'd recommend to wait for it to be fixed before proceeding with this one.

Depends on: 1642570
Severity: -- → N/A
Attachment #9285795 - Attachment is obsolete: true
Attachment #9285796 - Attachment is obsolete: true
Assignee: arai.unmht → nobody
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: