Closed
Bug 1100200
Opened 9 years ago
Closed 9 years ago
[MarionetteTest] Organize all telephony tests
Categories
(Firefox OS Graveyard :: RIL, defect)
Firefox OS Graveyard
RIL
Tracking
(Not tracked)
RESOLVED
FIXED
2.2 S2 (19dec)
People
(Reporter: aknow, Assigned: aknow)
References
Details
Attachments
(5 files, 1 obsolete file)
166.07 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
11.85 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
3.96 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
13.07 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
9.19 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
1. Migrate all test cases to promise version and utilize head.js 2. Sort the list in manifest.ini 3. Re-examine all the disabled tests and try to enable them.
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
Sorry for the huge patch.....
Attachment #8523706 -
Attachment is obsolete: true
Attachment #8524409 -
Flags: review?(htsai)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8524410 -
Flags: review?(htsai)
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8524411 -
Flags: review?(htsai)
Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8524412 -
Flags: review?(htsai)
Comment 6•9 years ago
|
||
Comment on attachment 8524409 [details] [diff] [review] Part 1: Migrate to promise version Review of attachment 8524409 [details] [diff] [review]: ----------------------------------------------------------------- r=me with 1) the comment for test_incoming_already_connected.js addressed, 2) have patches for another part to clean up test_emergency.js, test_outgoing_radio_off.js and test_outgoing_error_state.js Details in-line, thank you! ::: dom/telephony/test/marionette/head.js @@ +1067,5 @@ > this.gDelay = delay; > this.gWaitForEvent = waitForEvent; > + this.gWaitForCallsChangedEvent = waitForCallsChangedEvent; > + this.gWaitForNamedStateEvent = waitForNamedStateEvent; > + this.gWaitForStateChangeEvent = waitForStateChangeEvent; These three are added in bug 1093014. Rebase needed. ::: dom/telephony/test/marionette/test_emergency.js @@ +11,5 @@ > + .then(call => outCall = call) > + .then(() => gRemoteAnswer(outCall)) > + .then(() => gHangUp(outCall)) > + .catch(error => ok(false, "Promise reject: " + error)) > + .then(finish); Let's have another part for merging this and part of test_outgoing_error_state.js. Please add one more case for |gDialEmergency("A Bad Number")| to test_emergency.js. ::: dom/telephony/test/marionette/test_emergency_label.js @@ +9,5 @@ > function setEccListProperty(list) { > log("Set property ril.ecclist: " + list); > > + // We should wrap empty |list| by ''. Otherwise, the entire command will be > + // "setprop ril.ecclist" which causus the command error. Fixed in bug 1099053. Rebase needed. ::: dom/telephony/test/marionette/test_incoming_already_connected.js @@ +27,5 @@ > + > + // Answer incoming call; original outgoing call should be held > + .then(() => gAnswer(inCall)) > + .then(() => gCheckAll(inCall, [outCall, inCall], "", [], > + [outInfo.held, inInfo.active])) Be careful of potential timing issues b/w incall.active and outcall.held. Let's do what has been done in bug 1093014, thank you. ::: dom/telephony/test/marionette/test_outgoing_error_state.js @@ +22,1 @@ > .then(() => gDialEmergency(number)) Please have another part for the comment: Let's move this case to test_emergency.js, and expand test_outgoing_radio_off.js to cover |gDialEmergency(a_normal_number) when radio off|. Then, it's fine to remove the whole test_outgoing_error_state.js.
Attachment #8524409 -
Flags: review?(htsai) → review+
Comment 7•9 years ago
|
||
Comment on attachment 8524410 [details] [diff] [review] Part 2: Merge test cases into test_incoming_basic_operations.js Review of attachment 8524410 [details] [diff] [review]: ----------------------------------------------------------------- r=me with comment addressed. ::: dom/telephony/test/marionette/manifest.ini @@ +31,1 @@ > [test_incoming_onstatechange.js] Don't forget to add " test_incoming_basic_operations.js " to manifest.ini.
Attachment #8524410 -
Flags: review?(htsai) → review+
Updated•9 years ago
|
Attachment #8524411 -
Flags: review?(htsai) → review+
Comment 8•9 years ago
|
||
Comment on attachment 8524412 [details] [diff] [review] Part 4: Merge test cases into test_outgoing_basic_operations.js Review of attachment 8524412 [details] [diff] [review]: ----------------------------------------------------------------- Truly nice! r=me with comments addressed, thank you~ ::: dom/telephony/test/marionette/manifest.ini @@ +43,2 @@ > [test_outgoing_onstatechange.js] > [test_outgoing_radio_off.js] Don't forget |test_outgoing_basic_operations.js |. ::: dom/telephony/test/marionette/test_incoming_basic_operations.js @@ +36,5 @@ > + > +function remoteHangUp() { > + return gRemoteHangUp(inCall) > + .then(() => gCheckAll(null, [], "", [], [])); > +} We don't really need this, right :)
Attachment #8524412 -
Flags: review?(htsai) → review+
Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8534154 -
Flags: review?(htsai)
Updated•9 years ago
|
Attachment #8534154 -
Flags: review?(htsai) → review+
Assignee | ||
Comment 10•9 years ago
|
||
try looks good https://treeherder.mozilla.org/#/jobs?repo=try&revision=aad92d4bf44f
Assignee | ||
Comment 11•9 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/7ea0cf5b6bc6 https://hg.mozilla.org/integration/b2g-inbound/rev/b5572f21d6ab https://hg.mozilla.org/integration/b2g-inbound/rev/426b1a22e1ab https://hg.mozilla.org/integration/b2g-inbound/rev/6e009bb139fd https://hg.mozilla.org/integration/b2g-inbound/rev/a0d08d9c9748
Comment 12•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7ea0cf5b6bc6 https://hg.mozilla.org/mozilla-central/rev/b5572f21d6ab https://hg.mozilla.org/mozilla-central/rev/426b1a22e1ab https://hg.mozilla.org/mozilla-central/rev/6e009bb139fd https://hg.mozilla.org/mozilla-central/rev/a0d08d9c9748
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S2 (19dec)
You need to log in
before you can comment on or make changes to this bug.
Description
•