Closed
Bug 1309654
Opened 8 years ago
Closed 2 years ago
Refactor some autocomplete tests to be more readable and self-contained
Categories
(Toolkit :: Form Manager, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: mconley, Unassigned)
References
Details
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
Details |
test_form_autocomplete.html is an example of a test that was written before we had nice async tooling like add_task and yield, and what we've got in there is this giant switch statement with a test counter, and (at least to my eyes) it's a little hard to reason about, and it's easy for tests to influence one another.
I think it'd be better if the tests were refactored such that they're more isolated from one another so that it's easier to introduce new tests. I also think that we should use the add_task / yield / Promises mechanisms that we've introduced over the years, since I suspect this will greatly improve readability.
This work was originally done in bug 1296638, but has been split out for reviewer sanity and also to make sure that if we introduce any intermittent oranges, we can have a greater certainty of where they were introduced (either in bug 1296638 or in here during the refactor).
Comment hidden (mozreview-request) |
Reporter | ||
Comment 2•8 years ago
|
||
I rebased the patch onto the latest work in bug 1296638, but this still needs to be split up into more digestible chunks.
Updated•7 years ago
|
Priority: -- → P3
Updated•2 years ago
|
Severity: normal → S3
Comment 4•2 years ago
|
||
This test has been refactored recently.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•