mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 949849 - B2G RIL: Update the marionette test script for icc.updateContact. r=echen
This commit is contained in:
parent
b306d95b8a
commit
ae24a15b48
@ -41,6 +41,9 @@ function testAddContact(aIcc, aType, aPin2) {
|
||||
|
||||
return aIcc.updateContact(aType, contact, aPin2)
|
||||
.then((aResult) => {
|
||||
is(aResult.id, aIcc.iccInfo.iccid + "5");
|
||||
is(aResult.name[0], "add");
|
||||
is(aResult.tel[0].value, "0912345678");
|
||||
// Get ICC contact for checking new contact
|
||||
return aIcc.readContacts(aType)
|
||||
.then((aResult) => {
|
||||
@ -49,6 +52,7 @@ function testAddContact(aIcc, aType, aPin2) {
|
||||
|
||||
is(aResult[4].name[0], "add");
|
||||
is(aResult[4].tel[0].value, "0912345678");
|
||||
is(aResult[4].id, aIcc.iccInfo.iccid + "5");
|
||||
}, (aError) => {
|
||||
ok(false, "Cannot get " + aType + " contacts: " + aError.name);
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user