Closed Bug 1278770 Opened 8 years ago Closed 8 years ago

Decouple the test actors.

Categories

(DevTools :: General, defect, P1)

defect

Tracking

(firefox50 fixed)

RESOLVED FIXED
Firefox 50
Iteration:
50.2 - Jul 4
Tracking Status
firefox50 --- fixed

People

(Reporter: ejpbruel, Assigned: ejpbruel)

References

Details

Attachments

(1 file)

Our goal is to replace all uses of the old Actor/FrontClass constructors with the new Actor/FrontClassWithSpec constructors. We have several server tests that define their own actors for the purpose of that test, so these need to be decoupled as well.
Attached patch Decouple the test actors. (deleted) — Splinter Review
I did not move the actor specifications to the shared directory, because this seemed like overkill; we can keep the specs in the tests themselves, since the fronts are defined there as well. These fronts are not used anywhere else, and do not involve requiring any files from the client directory, so this should not pose any problems.
Attachment #8761079 - Flags: review?(nfitzgerald)
Great! I just started a WIP on this, but now I don't have to do it :)
Attachment #8761079 - Flags: review?(nfitzgerald) → review+
Status: NEW → ASSIGNED
Iteration: --- → 50.1
Flags: qe-verify-
Priority: -- → P1
Whiteboard: [devtools-html] [triage] → [devtools-html]
Gotta run `./mach eslint devtools` with these decoupling patches ;)

> TEST-UNEXPECTED-ERROR | devtools/shared/fronts/gcli.js:13:23 | Missing space before function parentheses. (space-before-function-paren)
> TEST-UNEXPECTED-ERROR | devtools/shared/fronts/gcli.js:31:36 | Missing space before function parentheses. (space-before-function-paren)

I assume this is from the gcli patch that this bug is working on top of.
(In reply to Nick Fitzgerald [:fitzgen] [⏰PDT; UTC-7] from comment #4)
> Gotta run `./mach eslint devtools` with these decoupling patches ;)
> 
> > TEST-UNEXPECTED-ERROR | devtools/shared/fronts/gcli.js:13:23 | Missing space before function parentheses. (space-before-function-paren)
> > TEST-UNEXPECTED-ERROR | devtools/shared/fronts/gcli.js:31:36 | Missing space before function parentheses. (space-before-function-paren)
> 
> I assume this is from the gcli patch that this bug is working on top of.

I did, and then only fixed devtools/shared/specs/gcli.js. I am not smart :-(
Pushed by ejpbruel@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/e10403956d1e
Decouple the test actors;r=fitzgen
https://hg.mozilla.org/mozilla-central/rev/e10403956d1e
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
I accidentally pushed an empty patch on this bug.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Pushed by ejpbruel@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/93a9cda876d8
Decouple the test actors;r=fitzgen
Status: REOPENED → ASSIGNED
Iteration: 50.1 → 50.2
https://hg.mozilla.org/mozilla-central/rev/93a9cda876d8
Status: ASSIGNED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
Whiteboard: [devtools-html]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: