Closed Bug 803861 Opened 12 years ago Closed 12 years ago

[WebAPI] WebTelephony: Tests should wait for 'onalerting' event during outgoing call

Categories

(Core :: DOM: Device Interfaces, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19
Tracking Status
firefox18 --- fixed
firefox19 --- fixed

People

(Reporter: rwood, Assigned: rwood)

Details

Attachments

(1 file)

When making an outgoing call on the B2G emulator using the WebAPI, the test should always wait for the 'onalerting' telephony event before requesting the current call list from the emulator.

Otherwise there is a race condition, and occasionally the emulator will return an empty call list as the call hasn't actually been made yet.  This situation causes the following tests to 'random orange', so they need to be updated:

test_incoming_already_connected.js
test_incoming_already_held.js
test_outgoing_already_held.js
test_outgoing_hold_resume.js
Some more to add to the list:

test_outgoing_answer_hangup.js
test_outgoing_hangup_held.js
test_outgoing_reject.js
test_emergency.js
Attached patch Patch for 803861Splinter Review
Attachment #673623 - Flags: review?(jgriffin)
Comment on attachment 673623 [details] [diff] [review]
Patch for 803861

It would be sweet if this cleared up the intermittent emulator crashes as well!
Attachment #673623 - Flags: review?(jgriffin) → review+
https://hg.mozilla.org/mozilla-central/rev/49e26446d1e0
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: