Closed Bug 732414 Opened 13 years ago Closed 13 years ago

WebSMS: Expose nsIDOMMozSmsFilter to xpcshell

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: ferjm, Assigned: ferjm)

References

Details

Attachments

(1 file)

Currently, there is no way to create an SmsFilter in xpcshell, since XPCOM isn´t told about the class, only about the interface.
Blocks: 712809, websms
Component: General → DOM: Device Interfaces
QA Contact: general → device-interfaces
Yeah, that's a good one. Because it's just a DOM object, the C++ implementation doesn't have a CID/ContractID with which we can instantiate it. And implementing our own nsIDOMMozSmsFilter in JS for testing purposes doesn't work either because the interface is marked [builtinclass] -- for a good reason, because the DOM IPC implementation depends on C++ implementation internals.
What do we need to test in xpcshell here that we can't test in the emulator?
(In reply to Chris Jones [:cjones] [:warhammer] from comment #2) > What do we need to test in xpcshell here that we can't test in the emulator? Functionally, nothing. xpcshell tests are just much quicker to run and don't depend on any UI. So if there's a low hanging fruit to *unit* test the SmsDatabaseService we're writing, I'll take it.
Assignee: nobody → ferjmoreno
Attached patch WIP v1 (deleted) — Splinter Review
Attachment #602923 - Flags: review?(mounir)
No longer blocks: 712809
Comment on attachment 602923 [details] [diff] [review] WIP v1 Review of attachment 602923 [details] [diff] [review]: ----------------------------------------------------------------- Seems sad to do this *only* for tests... Can't this test be made in a mochitest? r=me because the patch is correct but I would like to discuss the other solutions before landing this.
Attachment #602923 - Flags: review?(mounir) → review+
(In reply to Mounir Lamouri (:volkmar) (:mounir) from comment #5) > Seems sad to do this *only* for tests... > Can't this test be made in a mochitest? Hmm, right, it can. That might indeed be better.
Yup, chrome mochitest works. See bug 733265.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Actually, not an invalid bug, just one we didn't choose to fix this way.
Resolution: INVALID → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: