Convert helper modules to JSM
Categories
(Thunderbird :: Testing Infrastructure, task)
Tracking
(Not tracked)
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
Attachments
(3 files)
|
65.83 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
|
220.28 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
|
426.94 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
Some of the shared-modules/test-*-helpers.js files can be easily converted to javascript modules since they don't depend on anything.
| Assignee | ||
Comment 1•6 years ago
|
||
I haven't made any attempt to improve the actual code, just shifted things around so that they work. I'm trying to keep imports in a pattern:
- those from chrome://mozmill/content
- those from resource://testing-common/mozmill
- other imports
One of the next steps will probably be to move as much as possible from the remaining shared modules into JSMs.
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
Still waiting on bug 1582055, so here's the next bit.
| Assignee | ||
Comment 4•6 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #2)
In general, would be nicer to just import the whole KeyboardHelpers and call
functions on that, like KeyboardHelpers.input_value(....)
I agree, but I'm keeping this to the minimum viable change at the moment (which also makes a few things easier) and I'll come back and change all of the function calls in one giant patch at the end.
Comment 5•6 years ago
|
||
Hi, what is this good for?
Will only some of the files become .jsms? Won't this just be a bigger mess?
| Assignee | ||
Comment 7•6 years ago
|
||
If this was all I was doing then yes, I'd agree with you. But it isn't. I'm now working on a patch to convert all the remaining helper files to JSMs, and when that is done I'll be dismantling Mozmill altogether.
| Assignee | ||
Comment 8•6 years ago
|
||
Warning: reading this patch may make you drowsy. Do not drive or operate machinery after reading this patch.
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/0ee0e21ccb1b
part 1 - Convert some Mozmill helper modules to JSMs; r=mkmelin
https://hg.mozilla.org/comm-central/rev/19ae7a021b57
part 2 - Convert test-window-helpers.js to a JSM; r=mkmelin
https://hg.mozilla.org/comm-central/rev/284f2743822f
part 3 - Convert all remaining Mozmill helper modules to JSMs; r=mkmelin DONTBUILD
| Assignee | ||
Updated•6 years ago
|
Description
•