Closed
Bug 1130872
Opened 9 years ago
Closed 9 years ago
Add Robocop JavascriptTest verifying that AppConstants module can be imported and is sensible
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox38 fixed)
RESOLVED
FIXED
Firefox 38
Tracking | Status | |
---|---|---|
firefox38 | --- | fixed |
People
(Reporter: nalexander, Assigned: rricard, Mentored)
References
Details
(Whiteboard: [lang=js][good next bug])
Attachments
(1 file, 1 obsolete file)
2.39 KB,
patch
|
nalexander
:
review+
|
Details | Diff | Splinter Review |
This ticket tracks verifying that Bug 1130812 does not regress. It's a great mentor bug, although not quite a good first bug. What we want is a JavascriptTest (like [1], but there are lots of examples) that imports AppConstants.jsm and verifies that a few constants are reasonable. That might include checking that ANDROID_PACKAGE_NAME is a non-empty string and perhaps that the build timestamp is actually set. [1] See the pair of https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/tests/testAccounts.java and https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/tests/testAccounts.js
Assignee | ||
Comment 1•9 years ago
|
||
Hi Nick ! I think I can help on this ! I worked on a similar JSTest w/ margaret previously (see bug 1015395 and bug 1128287). So I think it is indeed a good next bug for me. Assign me to it if you think I can help. Thanks !
Flags: needinfo?(nalexander)
Assignee | ||
Comment 2•9 years ago
|
||
I launch a try as soon as you have a positive feedback !
Attachment #8563778 -
Flags: feedback?(nalexander)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(nalexander)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → ricard.robin
Status: NEW → ASSIGNED
Reporter | ||
Comment 3•9 years ago
|
||
Comment on attachment 8563778 [details] [diff] [review] Not yet tested (clobber was needed ... so it takes time) but should do the trick ! Review of attachment 8563778 [details] [diff] [review]: ----------------------------------------------------------------- Works for me! Push a try build for warm fuzzy green feelings :)
Attachment #8563778 -
Flags: feedback?(nalexander) → feedback+
Assignee | ||
Comment 4•9 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c7e860e05780
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8563778 [details] [diff] [review] Not yet tested (clobber was needed ... so it takes time) but should do the trick ! Green build (apart from an another intermittent bug) !
Attachment #8563778 -
Flags: review?(nalexander)
Comment 6•9 years ago
|
||
Comment on attachment 8563778 [details] [diff] [review] Not yet tested (clobber was needed ... so it takes time) but should do the trick ! >+add_task(function* testAppConstants() { >+ do_check_true(AppConstants.ANDROID_PACKAGE_NAME.length > 0); Can we add this too, so we verify the substitution actually happened: do_check_true(AppConstants.ANDROID_PACKAGE_NAME != "@ANDROID_PACKAGE_NAME@");
Assignee | ||
Comment 7•9 years ago
|
||
I do that as soon as I get to my computer
Assignee | ||
Comment 8•9 years ago
|
||
Can't start a try: tree is closed
Attachment #8563778 -
Attachment is obsolete: true
Attachment #8563778 -
Flags: review?(nalexander)
Attachment #8564194 -
Flags: review?(nalexander)
Assignee | ||
Comment 9•9 years ago
|
||
The try, finally: https://treeherder.mozilla.org/#/jobs?repo=try&revision=ce821f10c501
Flags: needinfo?(nalexander)
Reporter | ||
Comment 10•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/33ca49e58e4b
Reporter | ||
Comment 11•9 years ago
|
||
rricard: I pushed a slightly different version that uses do_check_neq. The advantage is that do_check_neq prints its arguments on failure, which will show what AppConstants.ANDROID_PACKAGE_NAME is (null, "", garbage, etc). Thanks for the patch and a green try build! I don't have a ton of JS mentored bugs right now, but if you're interested in a Java bug, the following is a small one: Bug 1124193. It might be too easy, though -- in which case ask in #mobile for a better ticket. Thanks again!
Flags: needinfo?(nalexander)
Reporter | ||
Updated•9 years ago
|
Attachment #8564194 -
Flags: review?(nalexander) → review+
Assignee | ||
Comment 12•9 years ago
|
||
Thanks for the advice, I'll may take it !
Assignee | ||
Comment 13•9 years ago
|
||
I could help on the Java side too !
Assignee | ||
Comment 14•9 years ago
|
||
I also thought of working on bug 1065969 too... I think I'll do them sequentially
Comment 15•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/33ca49e58e4b
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 38
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•