зеркало из https://github.com/mozilla/gecko-dev.git
Bug 930241 - Use toJSON instead of jsonifier in the Contacts interfaces. r=gwagner
--HG-- extra : rebase_source : b19099dec587b7acc3a86e71928423b46b958e0e
This commit is contained in:
Родитель
3a1212943a
Коммит
37bcdda882
|
@ -1054,6 +1054,12 @@ var steps = [
|
|||
};
|
||||
req.onerror = onFailure;
|
||||
},
|
||||
function() {
|
||||
ok(true, "Test JSON.stringify output for mozContact objects");
|
||||
var json = JSON.parse(JSON.stringify(new mozContact(properties1)));
|
||||
checkContacts(json, properties1);
|
||||
next();
|
||||
},
|
||||
function () {
|
||||
ok(true, "all done!\n");
|
||||
clearTemps();
|
||||
|
|
|
@ -22,6 +22,8 @@ interface ContactAddress {
|
|||
optional DOMString postalCode,
|
||||
optional DOMString countryName,
|
||||
optional boolean pref);
|
||||
|
||||
object toJSON();
|
||||
};
|
||||
|
||||
dictionary ContactAddressInit {
|
||||
|
@ -45,6 +47,8 @@ interface ContactField {
|
|||
void initialize(optional sequence<DOMString>? type,
|
||||
optional DOMString value,
|
||||
optional boolean pref);
|
||||
|
||||
object toJSON();
|
||||
};
|
||||
|
||||
dictionary ContactFieldInit {
|
||||
|
@ -63,6 +67,8 @@ interface ContactTelField : ContactField {
|
|||
optional DOMString value,
|
||||
optional DOMString? carrier,
|
||||
optional boolean pref);
|
||||
|
||||
object toJSON();
|
||||
};
|
||||
|
||||
dictionary ContactTelFieldInit : ContactFieldInit {
|
||||
|
@ -140,7 +146,7 @@ interface mozContact {
|
|||
[ChromeOnly]
|
||||
void setMetadata(DOMString id, Date? published, Date? updated);
|
||||
|
||||
jsonifier;
|
||||
object toJSON();
|
||||
};
|
||||
|
||||
dictionary ContactFindSortOptions {
|
||||
|
|
Загрузка…
Ссылка в новой задаче