Closed
Bug 814691
Opened 12 years ago
Closed 12 years ago
[WebAPI] WebTelephony: Develop test to verify cannot have two calls on hold simultaneously
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: rwood, Assigned: rwood)
Details
Attachments
(1 file)
9.79 KB,
patch
|
davehunt
:
review+
|
Details | Diff | Splinter Review |
Develop a WebAPI test to verify the following WebTelephony test case:
- Have two phone calls at the same time: call 1 on hold, call 2 is active
- With call 1 still on hold, place call 2 on hold also
- Call 1 should become active automatically while call 2 is held
Test will use marionette and run on the device emulator.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #684698 -
Flags: review?(dave.hunt)
Comment 2•12 years ago
|
||
Comment on attachment 684698 [details] [diff] [review]
Patch for 814691
Review of attachment 684698 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. A couple of minor nits with trailing whitespace, and a remaining question over the order of arguments when asserting equality, but I'm happy to r+ this with or without these addressed as they do not affect the validity of the test.
::: dom/telephony/test/marionette/test_multiple_hold.js
@@ +51,5 @@
> +function answerIncoming() {
> + log("Answering the incoming call.");
> +
> + let gotConnecting = false;
> + incomingCall.onconnecting = function onconnectingIn(event) {
Nit: trailing whitespace
@@ +63,5 @@
> + log("Received 'connected' call event for original (incoming) call.");
> + is(incomingCall, event.call);
> + is(incomingCall.state, "connected");
> + ok(gotConnecting);
> + is(incomingCall, telephony.active);
Most is() calls seem to be is(actual, expected) whereas if I'm not mistaken this appears to be the other way around. I'm not yet familiar enough with the framework to know if this matters here, but sometimes it can make a difference in the reporting.
@@ +115,5 @@
> + outgoingCall = telephony.dial(outNumber);
> + ok(outgoingCall);
> + is(outgoingCall.number, outNumber);
> + is(outgoingCall.state, "dialing");
> + is(outgoingCall, telephony.active);
As previous comment with order of actual vs expected.
@@ +275,5 @@
> + is(result[0], "OK");
> + cleanUp();
> + });
> + };
> + outgoingCall.hangUp();
Nit: trailing whitespace
Attachment #684698 -
Flags: review?(dave.hunt) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Thanks Dave. I checked the logcat and it just says X 'should equal' X for is() so I will just leave it as is (pun intended? haha).
Setting for checkin-needed.
Keywords: checkin-needed
Comment 4•12 years ago
|
||
Flags: in-testsuite+
Keywords: checkin-needed
Comment 5•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in
before you can comment on or make changes to this bug.
Description
•