Closed Bug 971546 Opened 12 years ago Closed 12 years ago

[System2] Instantiable Screenshot

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alive, Assigned: timdream)

References

Details

(Whiteboard: [in-bubble-tea])

Attachments

(1 file)

We need screenshot.js to be instantiable and let bootstrap or its parent module to instantiate it. Also jsdoc + unit test improvement wanted.
Assignee: nobody → timdream
https://github.com/timdream/gaia/tree/system2-screenshot WIP. The rewrite is quite simple, but writing unit tests is HARD.....
Status: NEW → ASSIGNED
Comment on attachment 8378147 [details] [review] mozilla-b2g:master PR#16442 So I managed to write unit test for this with a lot of setTimeout(). This is sad because the test would rely on the browser to actually invoke setTimeout'd functions, and the order of these setTimeout calls. I will file follow-up bugs to convert the mock and tests to something without setTimeout by introducing a MockDOMRequest.
Attachment #8378147 - Flags: review?(dflanagan)
Attachment #8378147 - Flags: review?(alive)
Comment on attachment 8378147 [details] [review] mozilla-b2g:master PR#16442 r+ with nits(_started protection)
Attachment #8378147 - Flags: review?(alive) → review+
https://github.com/mozilla-b2g/gaia/pull/16549 nit addressed, waiting for Travis-CI and going to merge this to bubble-tea.
Attachment #8378147 - Flags: review?(dflanagan)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Reverted in https://github.com/mozilla-b2g/gaia/commit/60e9eb1aa68a27fa21e75264e52409aa5a2b4cc4 because something in this or one of the six other patches that the b2g bumper bot included in a single push to b2g-inbound broke gaia-ui tests on TBPL: bumper bot's push's contents: https://hg.mozilla.org/integration/b2g-inbound/rev/0c2938cd910b The gaia-ui failure: https://tbpl.mozilla.org/php/getParsedLog.php?id=36421229&tree=B2g-Inbound In the future, can we please not merge seven patches in the course of 5 minutes? It would make tracking down regressions much simpler if they were spaced several minutes apart each.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I created this https://github.com/mozilla-b2g/gaia/pull/17376 To land the patch independently of bubble-tea.
Status: REOPENED → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Blocks: 948349
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: