Closed Bug 758457 Opened 13 years ago Closed 13 years ago

Device WebAPI Marionette tests for Contacts API

Categories

(Core :: DOM: Device Interfaces, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 816893

People

(Reporter: gwagner, Unassigned)

Details

No description provided.
Most of the contact API is not specific to Gonk and the device environment, so I suggest writing traditional DOM API tests (mochitests) here. We should find a way to run tests for APIs like these (settings, contacts, etc.) as well as unit tests for other parts (e.g. the RIL has a few xpcshell tests) on the CI.
I hope to have mochitest-plain running on the CI by next week. xpcshell tests will be a little further off.
(In reply to Philipp von Weitershausen [:philikon] from comment #1) > Most of the contact API is not specific to Gonk and the device environment You meant the Gecko-native implementation, right? > so I suggest writing traditional DOM API tests (mochitests) here. Agreed. > We should find a way to run tests for APIs like these (settings, Settings is highly system-dependent, would recommend using "device tests" for these.
(In reply to Chris Jones [:cjones] [:warhammer] from comment #3) > (In reply to Philipp von Weitershausen [:philikon] from comment #1) > > Most of the contact API is not specific to Gonk and the device environment > > You meant the Gecko-native implementation, right? Yes, right. Confusing terminology, sry. > > We should find a way to run tests for APIs like these (settings, > > Settings is highly system-dependent, would recommend using "device tests" > for these. Well. There's two different layers there. One is the actual functionality of the API. Requests, Locks, storage, etc. This can be done with dummy data in mochitests, much like Contacts API tests. The other layer is the fact that a bunch of Gecko services react when certain settings change. That will indeed have to be tested in "device tests", but I consider them more part of whatever component those settings affect than the settings API tests.
I already have plenty mochitests in dom/contacts/tests. But we need something for testing contacts import from sim card.
Marionette tests for importing SIM contact is done in Bug 816893
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.