Closed Bug 1027514 Opened 11 years ago Closed 11 years ago

[B2G][RIL][MMI] Add marionette test cases for callforwarding MMI code

Categories

(Firefox OS Graveyard :: RIL, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.0 S5 (4july)

People

(Reporter: edgar, Assigned: edgar)

References

Details

(Whiteboard: [p=1])

Attachments

(1 file, 3 obsolete files)

Now emulator supports setting/getting callforwarding, we could write some test cases for callforwarding MMI code.
Depends on: 861725
Assignee: nobody → echen
Attached patch Patch, v1 (obsolete) — Splinter Review
Whiteboard: [p=1]
Target Milestone: --- → 2.0 S5 (4july)
Attached patch Patch, v2 (obsolete) — Splinter Review
Attachment #8444385 - Attachment is obsolete: true
Attached patch Patch, v3 (obsolete) — Splinter Review
Attachment #8445669 - Attachment is obsolete: true
Attachment #8445677 - Flags: review?(htsai)
Blocks: 1000014
Comment on attachment 8445677 [details] [diff] [review] Patch, v3 Review of attachment 8445677 [details] [diff] [review]: ----------------------------------------------------------------- Thank you. ::: dom/mobileconnection/tests/marionette/test_mobile_mmi_call_forwarding.js @@ +123,5 @@ > + reason: reason, > + action: MozMobileConnection.CALL_FORWARD_ACTION_ERASURE > + }; > + promise = > + promise.then(() => setCallForwardingOption(options).then(null, () => {})); I am not sure I got the point of having "then(null, () => {})" appended.
Attachment #8445677 - Flags: review?(htsai) → review+
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #4) > Comment on attachment 8445677 [details] [diff] [review] > Patch, v3 > > Review of attachment 8445677 [details] [diff] [review]: > ----------------------------------------------------------------- > > Thank you. > > ::: dom/mobileconnection/tests/marionette/test_mobile_mmi_call_forwarding.js > @@ +123,5 @@ > > + reason: reason, > > + action: MozMobileConnection.CALL_FORWARD_ACTION_ERASURE > > + }; > > + promise = > > + promise.then(() => setCallForwardingOption(options).then(null, () => {})); > > I am not sure I got the point of having "then(null, () => {})" appended. It is because emulator doesn't support CALL_FORWARD_REASON_ALL_* yet [1], we catch the reject here in order to avoid impact the test result. I guess I can add some comments here to make things clearer. Thank you. [1] https://github.com/mozilla-b2g/platform_external_qemu/blob/3326b51017252e09ccdd715dec6c5e12a7d1ecfe/telephony/android_modem.c#L2629-L2635
Add some comments for comment #5.
Attachment #8445677 - Attachment is obsolete: true
Attachment #8447825 - Flags: review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: