Closed Bug 1152737 Opened 10 years ago Closed 10 years ago

[MCTS][2.2] webapi:telephony test cause Telephony.oncallschanged event not found

Categories

(Firefox OS Graveyard :: Certification Suite, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: oouyang, Unassigned)

References

Details

Attachments

(1 file)

54 bytes, text/x-github-pull-request
atsai
: review+
askeing
: review+
Details | Review
From the following bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1081811 We think it need makes some change depends on this bug.
Hi Hsin-Yi, I think this case is related to bug 1081811. Could you give us some hint or infomration, and let us to modify this case to resolve this issue?
Flags: needinfo?(htsai)
(In reply to oo[oouyang] from comment #1) > Hi Hsin-Yi, > > I think this case is related to bug 1081811. > Could you give us some hint or infomration, and let us to modify this case > to resolve this issue? Sure. After bug 1081811, please make sure that you don't rely on 'callschanged' event to determine if telephony initialization work completes. You should wait for 'ready' event instead. Please give it a try and see if my suggestion helps.
Flags: needinfo?(htsai)
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #2) > (In reply to oo[oouyang] from comment #1) > > Hi Hsin-Yi, > > > > I think this case is related to bug 1081811. > > Could you give us some hint or infomration, and let us to modify this case > > to resolve this issue? > > Sure. > > After bug 1081811, please make sure that you don't rely on 'callschanged' > event to determine if telephony initialization work completes. You should > wait for 'ready' event instead. Please give it a try and see if my > suggestion helps. Sorry, there's no ready event in the latest m-c code. Instead, we have a 'ready' promise.
Hi Hsin-yi, Could you please provide a piece of sample code to use 'ready' promise? Thanks
Flags: needinfo?(htsai)
Do something like: let telephony = window.navigator.mozTelephony; telephony.ready.then( function() { // Do what you need once telephony is ready. console.log("Telephony got ready"); // Some callback here... }, function() { // Do what you need once telephony fails initializing. } ); gecko/dom/telephony/test/marionette/test_ready.js could also provide a good reference to you.
Flags: needinfo?(htsai)
Attachment #8591485 - Flags: review?(fyen)
Attachment #8591485 - Flags: review?(atsai)
Comment on attachment 8591485 [details] [review] fix telephony 2.2 issues LGTM
Attachment #8591485 - Flags: review?(fyen) → review+
Comment on attachment 8591485 [details] [review] fix telephony 2.2 issues r=me. merged.
Attachment #8591485 - Flags: review?(atsai) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: