Closed Bug 1261943 Opened 10 years ago Closed 10 years ago

clean up TB mozmill tests using the account wizard

Categories

(Thunderbird :: Testing Infrastructure, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 48.0

People

(Reporter: aceman, Assigned: aceman)

Details

Attachments

(1 file, 1 obsolete file)

I've found these 3 mozmill tests that use the account wizard and use a server config file to determine the account configuration: mozmill/account/test-mail-account-setup-wizard.js mozmill/account/test-retest-config.js mozmill/instrumentation/test-instrument-setup.js I propose to clean them up a bit. Some imports can be removed, some boilerplate code shortened. Also they use mozmill/account/html/ and mozmill/account/xml/ to store the server config files. That is, 2 folders for the same thing (a xml config file). This can be merged.
Comment on attachment 8737936 [details] [diff] [review] patch Review of attachment 8737936 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me, except the .com -> .invalid changes ::: mail/test/mozmill/account/test-mail-account-setup-wizard.js @@ +69,5 @@ > let url = collector.addHttpResource("../account/xml", "autoconfig"); > Services.prefs.setCharPref(pref_name, url); > > // Force .com MIME-Type to text/xml > + collector.httpd.registerContentType("invalid", "text/xml"); Why this change? example.com is actually a real domain reserved for testing usage
Attachment #8737936 - Flags: review?(mkmelin+mozilla)
Yes, it is a real domain that can be looked up and does exist. .invalid does not really exist so we may avoid hitting the network accidentaly. But I can revert it back if you wish, it is not critically needed to solve the bug.
Yes please.
Attached patch patch v2Splinter Review
Attachment #8737936 - Attachment is obsolete: true
Attachment #8741053 - Flags: review?(mkmelin+mozilla)
Comment on attachment 8741053 [details] [diff] [review] patch v2 Review of attachment 8741053 [details] [diff] [review]: ----------------------------------------------------------------- r=mkmelin
Attachment #8741053 - Flags: review?(mkmelin+mozilla) → review+
Thanks.
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 48.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: