Closed Bug 759521 Opened 12 years ago Closed 12 years ago

WebTelephony: investigate test failures for outgoing calls

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16
blocking-basecamp -

People

(Reporter: philikon, Assigned: hsinyi)

References

Details

Attachments

(1 file, 4 obsolete files)

Some of the outgoing call tests in bug 756607 fail and had to be disabled. We should investigate if they're testing faulty assumptions, our implementation is busted, or the emulator is messing things up somehow.
Assignee: nobody → htsai
Not a blocker - a test harness problem.
No longer blocks: webtelephony
blocking-basecamp: --- → -
After discussing with Price about the error-notifying mechanism and some experiments, "error" event is never fired in the situation of dialing a bad number. That's the reason why "test_outgoing_badNumber.js" in bug 756607 always fails. Actually, the events of dialing a bad number are the same as those of dialing a legal number.
Regarding the failure in "test_outgoing_busy.js" there are two reasons: (1) WebTelephony never fires "busy" event because the call state never reaches nsIRadioInterfaceLayer::CALL_STATE_BUSY in our implementation. (2) the emulator command "gsm busy" can be used only if the current call state is "waiting". In the test script, the call state right before "gsm busy" is unknown.
Attached patch Patch: update test_outgoing_reject.js (obsolete) (deleted) — Splinter Review
"gsm cancel" cannot be used to cancel a call with unknown state. We need to wait until the connection is established, then "gsm cancel" works fine.
Attachment #630106 - Flags: review?(philipp)
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #3) > Regarding the failure in "test_outgoing_busy.js" there are two reasons: > (1) WebTelephony never fires "busy" event because the call state never > reaches nsIRadioInterfaceLayer::CALL_STATE_BUSY in our implementation. I filed Bug 761533 for this failure.
Attached patch Patch (v2) : update test_outgoing_reject.js (obsolete) (deleted) — Splinter Review
addressed some nits
Attachment #630106 - Attachment is obsolete: true
Attachment #630106 - Flags: review?(philipp)
Attachment #630112 - Flags: review?(philipp)
Attached patch Patch (v3): update test scripts (obsolete) (deleted) — Splinter Review
Minor modifications are applied according to the investigation in bug 757587. Thanks.
Attachment #630112 - Attachment is obsolete: true
Attachment #630112 - Flags: review?(philipp)
Attachment #631317 - Flags: review?(philipp)
Attached patch Patch (v4) (obsolete) (deleted) — Splinter Review
Updated. When I was working on bug 761533, I found that we might miss something for call error event. Seems nothing incorrect in Philipp's test script 'test_outgoing_basNumber.js' So, I added 'test_outgoing_basNumber.js', which had been deleted in attachment 631317 [details] [diff] [review], back. Thanks.
Attachment #631317 - Attachment is obsolete: true
Attachment #631317 - Flags: review?(philipp)
Attachment #631341 - Flags: review?(philipp)
In Bug 761533, i will revisit call error handling function. So, I will keep investigate test_outgoing_badNumber and test_outgoing_busy there.
Comment on attachment 631341 [details] [diff] [review] Patch (v4) Review of attachment 631341 [details] [diff] [review]: ----------------------------------------------------------------- Good sleuthing! r=me with readability nit addressed. ::: dom/telephony/test/marionette/test_outgoing_reject.js @@ +75,5 @@ > +function waitForCancel() { > + runEmulatorCmd("gsm list", cmdCallback); > +} > + > +function cmdCallback(result) { Not sure why you didn't inline this... You don't refer to it anywhere else, so it just clutters up readability, I think.
Attachment #631341 - Flags: review?(philipp) → review+
(In reply to Philipp von Weitershausen [:philikon] from comment #10) > Comment on attachment 631341 [details] [diff] [review] > Patch (v4) > > Review of attachment 631341 [details] [diff] [review]: > ----------------------------------------------------------------- > > Good sleuthing! r=me with readability nit addressed. > > ::: dom/telephony/test/marionette/test_outgoing_reject.js > @@ +75,5 @@ > > +function waitForCancel() { > > + runEmulatorCmd("gsm list", cmdCallback); > > +} > > + > > +function cmdCallback(result) { > > Not sure why you didn't inline this... You don't refer to it anywhere else, > so it just clutters up readability, I think. Thanks for the comment. Will provide a new patch with the comment addressed. :)
Attached patch Patch (v5) (deleted) — Splinter Review
addressed nit in Comment #10. Thanks!
Attachment #631341 - Attachment is obsolete: true
Keywords: checkin-needed
Flags: in-testsuite+
Keywords: checkin-needed
Target Milestone: --- → mozilla16
Status: NEW → RESOLVED
Closed: 12 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: