Closed Bug 558445 Opened 14 years ago Closed 14 years ago

harness.js cleanup

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dietrich, Assigned: dietrich)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch v1 (obsolete) — Splinter Review
This patch makes little if no functional change to the code in harness.js, and still passes all tests when I do "cfx testall".

Primarily it re-arranges the code into a structure that:

- is easier to follow, easing bug fixing
- removes use of globals within class definitions
- removes a few cycles found (still leaking though, so more work to do)

It still needs more cleanup and lots more comments. I'll keep working on it as I push on bug 557121.

Atul: Because of all the moving around I did, the diff is un-followable! I recommend applying the patch and reviewing from there :)
Attachment #438162 - Attachment is patch: true
Attachment #438162 - Attachment mime type: application/octet-stream → text/plain
Attachment #438162 - Flags: review?(avarma)
Comment on attachment 438162 [details] [diff] [review]
v1

canceling review request, need a few more fixes. turns out "testall" doesn't flex some codepaths that user-created modules do.
Attachment #438162 - Flags: review?(avarma)
Assignee: nobody → dietrich
Version: unspecified → Trunk
Attached patch v2 (obsolete) — Splinter Review
breaks development mode (which seems broken to begin with actually?).
Attachment #438162 - Attachment is obsolete: true
I've confirmed that my change prevents development mode from starting up correctly.

I've also confirmed that I don't know how to use dev mode.. I start it up, open a separate SDK environment, and make calls with -r, and nothing happens in either shell.
Nope, it sounds like dev-mode is indeed broken to begin with, not that you don't know how to use it--I'll look into this asap, thanks!
Just added bug 562397 to address the 'cfx develop' problem.
Attached patch v2.1Splinter Review
minor fixes, cleanup
Attachment #442027 - Attachment is obsolete: true
patch is long-rotted. was mostly stylistic changes, so not a major loss.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
The Add-on SDK is no longer a Mozilla Labs experiment and has become a big enough project to warrant its own Bugzilla product, so the "Add-on SDK" product has been created for it, and I am moving its bugs to that product.

To filter bugmail related to this change, filter on the word "looptid".
Component: Jetpack SDK → General
Product: Mozilla Labs → Add-on SDK
QA Contact: jetpack-sdk → general
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: