Closed Bug 766822 Opened 13 years ago Closed 13 years ago

WebTelephony: add tests for hanging up dialing/alerting/holding calls

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: hsinyi, Assigned: hsinyi)

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Assignee: nobody → htsai
When writing the test, i realized that it is ignored to hang up a 'holding' or 'held' call. The original thought was that a held call should be resumed first before being hung up. I am thinking maybe we would like to change this situation here?
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #1) > When writing the test, i realized that it is ignored to hang up a 'holding' > or 'held' call. The original thought was that a held call should be resumed > first before being hung up. > > I am thinking maybe we would like to change this situation here? Also, remove 'held' call from active call, if it was be?
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #1) > When writing the test, i realized that it is ignored to hang up a 'holding' > or 'held' call. The original thought was that a held call should be resumed > first before being hung up. If it's possible to hang up a held call, we should support it in the API. Otherwise we should probably throw an exception to indicate that our phone stack doesn't support it. (In reply to Hsin-Yi Tsai [:hsinyi] from comment #2) > Also, remove 'held' call from active call, if it was be? Yes.
Attached patch patch (obsolete) — Splinter Review
Here are tests for hanging up alerting and held calls. However, seems that emulator does not support the request 'RIL_LAST_CALL_FAIL_CAUSE' that we use to make call into 'disconnected', so the tests fail in capturing 'disconnected' event. If we revert back before https://hg.mozilla.org/mozilla-central/rev/f7e10a29e5c6 the tests work fine. Same situation to all other telephony tests. So I disable them all at this moment.
Attachment #638979 - Flags: review?(philipp)
Attachment #638979 - Attachment is obsolete: true
Attachment #638979 - Flags: review?(philipp)
Attached patch patch (v2)Splinter Review
Here are tests for hanging up alerting and held calls. However, seems that emulator does not support the request 'RIL_LAST_CALL_FAIL_CAUSE' that we use to make call into 'disconnected', so the tests fail in capturing 'disconnected' event. If we revert back before https://hg.mozilla.org/mozilla-central/rev/f7e10a29e5c6 the tests work fine. Same situation to all other telephony tests. So I disable them all at this moment.
Attachment #638982 - Flags: review?(philipp)
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #5) > Here are tests for hanging up alerting and held calls. However, seems that > emulator does not support the request 'RIL_LAST_CALL_FAIL_CAUSE' that we use > to make call into 'disconnected', so the tests fail in capturing > 'disconnected' event. > If we revert back before > https://hg.mozilla.org/mozilla-central/rev/f7e10a29e5c6 the tests work fine. I see! So that's the reason for bug 768608! The solution here is to make sure we still do the right thing even if the RIL doesn't support RIL_LAST_CALL_FAIL_CAUSE. Let's do that in bug 768608, I'll assign it to you, ok?
Comment on attachment 638982 [details] [diff] [review] patch (v2) Review of attachment 638982 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me. But please don't disable the tests; we should rather fix them. (This also applies to the comments in the tests.) r=me with that addressed. Thanks!
Attachment #638982 - Flags: review?(philipp) → review+
(In reply to Philipp von Weitershausen [:philikon] from comment #7) > Comment on attachment 638982 [details] [diff] [review] > patch (v2) > > Review of attachment 638982 [details] [diff] [review]: > ----------------------------------------------------------------- > > Looks good to me. But please don't disable the tests; we should rather fix > them. (This also applies to the comments in the tests.) r=me with that > addressed. > > Thanks! Hi Philipp, Are you saying that I should remove the comments in the tests as well? Thanks.
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #8) > Are you saying that I should remove the comments in the tests as well? Yes, since they no longer apply once we make those tests pass.
(In reply to Philipp von Weitershausen [:philikon] from comment #9) > (In reply to Hsin-Yi Tsai [:hsinyi] from comment #8) > > Are you saying that I should remove the comments in the tests as well? > > Yes, since they no longer apply once we make those tests pass. Got it. Will address your comments. Thanks!
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: