Closed Bug 1193049 Opened 9 years ago Closed 8 years ago

Add a function to toggle between detached DOM nodes and attached DOM nodes for Unit Tests

Categories

(Hello (Loop) :: Client, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: andreio, Unassigned)

Details

(Whiteboard: [tech-debt])

Need: As a developer I want to be able to inspect the component I am unit testing when tests fail.

Deliverable: Instead of using detached DOM nodes attach them to the document and hide them off screen This way we can toggle them on and inspect them.
Flags: firefox-backlog+
Whiteboard: [tech-debt]
(In reply to Andrei Oprea [:andreio] from comment #0)
> Deliverable: Instead of using detached DOM nodes attach them to the document
> and hide them off screen This way we can toggle them on and inspect them.

I'd be concerned that this will slow our tests down even further than they are now. If it can be proved that detached versus attached+hidden is exactly the same speed, then fair enough - I just don't want them running slower than they are now.

I would suggest we rephrase this as something like "Add a function to toggle between detached DOM nodes and attached DOM nodes".

This could be a toggle like we've got on the RTL mode on the ui-showcase display, or it could be something else.
Rank: 35
Priority: -- → P3
Summary: Update unit tests to attach test component into the DOM → Add a function to toggle between detached DOM nodes and attached DOM nodes for Unit Tests
Support for Hello/Loop has been discontinued.

https://support.mozilla.org/kb/hello-status

Hence closing the old bugs. Thank you for your support.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.