Closed
Bug 971546
Opened 12 years ago
Closed 12 years ago
[System2] Instantiable Screenshot
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
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 | ||
Updated•12 years ago
|
Assignee: nobody → timdream
| Assignee | ||
Comment 1•12 years ago
|
||
https://github.com/timdream/gaia/tree/system2-screenshot
WIP. The rewrite is quite simple, but writing unit tests is HARD.....
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•12 years ago
|
||
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)
| Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 8378147 [details] [review]
mozilla-b2g:master PR#16442
r+ with nits(_started protection)
Attachment #8378147 -
Flags: review?(alive) → review+
| Assignee | ||
Comment 5•12 years ago
|
||
Follow up = bug 974319
| Assignee | ||
Comment 6•12 years ago
|
||
https://github.com/mozilla-b2g/gaia/pull/16549
nit addressed, waiting for Travis-CI and going to merge this to bubble-tea.
| Assignee | ||
Comment 7•12 years ago
|
||
merged to bubble-tea:
https://github.com/mozilla-b2g/gaia/commit/1a78cae15870f02f743e3bd4f67b72b1ba96b5ea
Whiteboard: [in-bubble-tea]
| Assignee | ||
Updated•12 years ago
|
Attachment #8378147 -
Flags: review?(dflanagan)
Comment 8•12 years ago
|
||
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 → ---
| Assignee | ||
Comment 10•12 years ago
|
||
I created this
https://github.com/mozilla-b2g/gaia/pull/17376
To land the patch independently of bubble-tea.
Status: REOPENED → ASSIGNED
Comment 11•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•