Open
Bug 1792811
Opened 3 years ago
Remove redundant empty string declaration in formautofill testcases
Categories
(Toolkit :: Form Autofill, task, P3)
Toolkit
Form Autofill
Tracking
()
NEW
People
(Reporter: dimi, Unassigned)
References
(Blocks 1 open bug)
Details
There are patterns that we declare empty attribute in every testcase objects. For example:
https://searchfox.org/mozilla-central/rev/91ed81b76015e49ebd55a6de5df2b034456c15e8/browser/extensions/formautofill/test/unit/test_getFormInputDetails.js#32-34
We can make the code a little bit cleaner by assuming it is empty if the attribute is not defined. An example of how we can remove redundant code can be found in this patch
You need to log in
before you can comment on or make changes to this bug.
Description
•