Closed
Bug 943263
Opened 11 years ago
Closed 11 years ago
B2G MMS : add test cases for MobileMessageDB::forEachMatchedMmsDeliveryInfo
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.3 C1/1.4 S1(20dec)
People
(Reporter: vicamo, Assigned: vicamo)
References
Details
Attachments
(1 file)
4.88 KB,
patch
|
airpingu
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #942780 +++
To unblock bug 942780 from bug 940884, move test cases to a new bug and depend on them both.
Assignee | ||
Updated•11 years ago
|
Blocks: b2g-marionette
Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → vyang
Attachment #8338431 -
Flags: review?(gene.lian)
Comment 2•11 years ago
|
||
Comment on attachment 8338431 [details] [diff] [review]
patch
Review of attachment 8338431 [details] [diff] [review]:
-----------------------------------------------------------------
How nice!
::: dom/mobilemessage/tests/marionette/test_mmdb_foreachmatchedmmsdeliveryinfo.js
@@ +38,5 @@
> +
> + let count = 0;
> + aMmdb.forEachMatchedMmsDeliveryInfo(deliveryInfo, aNeedle, function(aElement) {
> + ok(true, "checking " + aElement.receiver);
> + ok(!aElement.hasOwnProperty("traversed"), "element.traversed");
I don't think need this line since you just called:
clearTraversed(deliveryInfo);
This sounds a bit redundant to me.
::: dom/mobilemessage/tests/marionette/test_mmdb_new.js
@@ +7,5 @@
> startTestBase(function testCaseMain() {
> log("Test init MobileMessageDB");
>
> + // TODO: bug 943233 - passing jsm exported objects to |Promise.resolve| gets
> + // empty object in return.
The coding style for comment should be:
// {upper_case_letter}...{period}
so, s/e/E
Attachment #8338431 -
Flags: review?(gene.lian) → review+
Comment 3•11 years ago
|
||
Sorry, I misunderstood for the last comment. Don't need to s/e/E because it's a new line.
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Gene Lian [:gene] (needinfo? encouraged) from comment #2)
> :::
> dom/mobilemessage/tests/marionette/test_mmdb_foreachmatchedmmsdeliveryinfo.js
> @@ +38,5 @@
> > +
> > + let count = 0;
> > + aMmdb.forEachMatchedMmsDeliveryInfo(deliveryInfo, aNeedle, function(aElement) {
> > + ok(true, "checking " + aElement.receiver);
> > + ok(!aElement.hasOwnProperty("traversed"), "element.traversed");
>
> I don't think need this line since you just called:
> clearTraversed(deliveryInfo);
> This sounds a bit redundant to me.
The reason there is a function called |clearTraversed| is to check any of the elements is not traversed twice. So somehow there must be someway to mark/check/clean a certain attribute, or we should never have it at all. If you still have other concern ...
Flags: needinfo?(gene.lian)
Assignee | ||
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → 1.3 C1/1.4 S1(20dec)
You need to log in
before you can comment on or make changes to this bug.
Description
•