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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
1.3 C1/1.4 S1(20dec)

People

(Reporter: vicamo, Assigned: vicamo)

References

Details

Attachments

(1 file)

+++ 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.
Attached patch patchSplinter Review
Assignee: nobody → vyang
Attachment #8338431 - Flags: review?(gene.lian)
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+
Sorry, I misunderstood for the last comment. Don't need to s/e/E because it's a new line.
(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)
OK. It's fine.
Flags: needinfo?(gene.lian)
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.

Attachment

General

Created:
Updated:
Size: