Closed Bug 1085595 Opened 11 years ago Closed 11 years ago

Move hard-coded strings in testDoorHanger into StringHelper

Categories

(Firefox for Android Graveyard :: Testing, defect)

35 Branch
All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 36

People

(Reporter: Margaret, Assigned: lviknesh, Mentored)

Details

(Whiteboard: [good first bug][lang=java])

Attachments

(1 file, 1 obsolete file)

We declare local variables for a lot of strings in here: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/tests/testDoorHanger.java Instead, we should declare them here: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/tests/StringHelper.java For details about running robocop tests locally, see this documentation: https://wiki.mozilla.org/Mobile/Fennec/Android#Robocop
Can I work on this?
Attached patch moved-to-StringHelper.patch (obsolete) — Splinter Review
Assignee: nobody → lviknesh
Status: NEW → ASSIGNED
Attachment #8508903 - Flags: review?(margaret.leibovic)
(In reply to Yasaswy Kota [:caber] from comment #1) > Can I work on this? Hi Yasaswy, unfortunately, it looks like vikneshwar beat you to this bug. Let me know if you need help finding another bug! We'd love to see you get involved!
Comment on attachment 8508903 [details] [diff] [review] moved-to-StringHelper.patch Review of attachment 8508903 [details] [diff] [review]: ----------------------------------------------------------------- Looking good! I made a try push: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=0b8826a204cd If it's green, we can land it. You've been doing a lot of great work, let me know if you need help finding more challenging bugs! It would be nice to leave these [good first bugs] for first-timers :) ::: mobile/android/base/tests/StringHelper.java @@ +251,5 @@ > + public static final String LOGIN_MESSAGE = "Save password"; > + public static final String LOGIN_ALLOW = "Save"; > + public static final String LOGIN_DENY = "Don't save"; > + > + //Strings used in popup Nit: These strings are used in the popup-blocking doorhanger, not in a popup. We can remove this comment since the comment above about doorhanger messages and buttons applies here.
Attachment #8508903 - Flags: review?(margaret.leibovic) → review+
(In reply to :Margaret Leibovic from comment #3) > (In reply to Yasaswy Kota [:caber] from comment #1) > > Can I work on this? > > Hi Yasaswy, unfortunately, it looks like vikneshwar beat you to this bug. > Let me know if you need help finding another bug! We'd love to see you get > involved! Hi Margaret, it would be great if you can find something that I help out with!
Attached patch final.patchSplinter Review
Removed the comment :)
Attachment #8508903 - Attachment is obsolete: true
Flags: needinfo?(margaret.leibovic)
Comment on attachment 8509525 [details] [diff] [review] final.patch Review of attachment 8509525 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks! And the try run looks green, so we can land this.
Attachment #8509525 - Flags: review+
Flags: needinfo?(margaret.leibovic)
Keywords: checkin-needed
Keywords: checkin-needed
Whiteboard: [good first bug][lang=java] → [good first bug][lang=java][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [good first bug][lang=java][fixed-in-fx-team] → [good first bug][lang=java]
Target Milestone: --- → Firefox 36
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: