Closed Bug 1005896 Opened 10 years ago Closed 10 years ago

[NFC] Pairing UI unit tests

Categories

(Firefox OS Graveyard :: NFC, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kamituel, Assigned: kamituel)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36




Expected results:

NFC pairing UI (which just landed, see 969277) needs unit tests, as suggested by @Alive. 

As agreed with Arno, I'm working on those. Please assign this bug to me if you have required Bugzilla permissions.
I could definitely use NfcManagerUtils.encodeHandoverSelect() for those tests, but I need it to accept bluetooth name as a parameter.
Depends on: 1005886
Assignee: nobody → kamituel
Blocks: NFC-Gaia
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attached file Proposed test suites.
Tests whether:
- UI is correctly L10n'd (buttons, labels), depending on all variables (Bluetooth adapter on/off, peer device name available/not)
- Buttons are working properly

In addition to tests which has already landed as part of bug 969277 (dialog lifecycle tests), this should cover most important cases.
Attachment #8423351 - Flags: review?(alive)
Comment on attachment 8423351 [details] [review]
Proposed test suites.

r=me

BTW, I'd like to add test for SNCD.prototype.hide and SNCD.prototype.show, but it's up to you to do in followup.
Attachment #8423351 - Flags: review?(alive) → review+
Whiteboard: checkin-needed
@Alive, whad do you exactly mean? I think (at least some of it) .show()/.hide() is covered already in 'Dialog lifecycle' suite, isn'it it?
https://github.com/mozilla-b2g/gaia/commit/2dbc55b3be11cae70ffc379c2f54494299f9de8c
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: