implement registerTaskCleanup() hook
Categories
(Toolkit :: Password Manager, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox119 | --- | fixed |
People
(Reporter: joschmidt, Assigned: joschmidt)
References
Details
(Whiteboard: [fxcm-test-debt])
Attachments
(3 files, 1 obsolete file)
Extend the add_task
helper to emit a signal when a task has ended so other helpers can hook into it to do some after task cleanup.
Updated•1 year ago
|
Helpers and tests can now hook into SimpleTest.registerTaskCleanupFunction
to
provide a code that will be executed after the current task is finished. In it,
for example, state can be cleaned up.
Switch a sample test to use storeLoginsDuringTask(...loginInfos)
and
SimpleTest.setContentForTask(html)
, which are powered by task cleanup fn.
Depends on D187211
Updated•1 year ago
|
Updated•1 year ago
|
Rewrite test_autocomplete_autofill_related_realms_no_dupes.html
and introduce
SimpleTest.setPreferencesForTask(...preferences)
storeLoginsDuringTest(...loginInfos)
formAutofillResult(formId)
which handles state cleanup between tests and tasks.
Depends on D187271
Updated•1 year ago
|
Updated•1 year ago
|
Comment 6•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/480dbe152462
https://hg.mozilla.org/mozilla-central/rev/b01839e48205
https://hg.mozilla.org/mozilla-central/rev/fc9333c3b9f7
Updated•1 year ago
|
Description
•