- From: Dominique Hazael-Massieux via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 23 May 2011 20:47:03 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/contacts/tests/test-cases
In directory hutz:/tmp/cvs-serv29760
Modified Files:
find_with_array_composed_field.html
Log Message:
more composed terms in fields list
Index: find_with_array_composed_field.html
===================================================================
RCS file: /sources/public/2009/dap/contacts/tests/test-cases/find_with_array_composed_field.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- find_with_array_composed_field.html 23 May 2011 16:57:15 -0000 1.1
+++ find_with_array_composed_field.html 23 May 2011 20:46:59 -0000 1.2
@@ -12,15 +12,15 @@
<p>Please select Joe Lambda when prompted.</p>
<div id="log"></div>
<script>
- var t = async_test("country 'U.S.A.' properly returned", {timeout: 15000});
+ var t = async_test("address info properly returned", {timeout: 15000});
var joeContact = {"id": null,
"displayName": null,
- "name": null,
+ "name": {formatted: "Joe Lambda", familyName: null, givenName: null, honorificPrefix: null, honorificSuffix: null, middleName: null},
"nickname": null,
"phoneNumbers": null,
"emails": null,
"addresses": [
- {"formatted": null, "streetAddress": null, "locality": null, "region": null, "postalCode": null, "country": "U.S.A."}
+ {"formatted": null, "streetAddress": null, "locality": "Raleigh", "region": null, "postalCode": null, "country": "U.S.A."}
],
"ims": null,
"organizations": null,
@@ -33,7 +33,7 @@
"urls": null,
"timezone": null};
- navigator.contacts.find(["addresses.country"], function (contacts) {
+ navigator.contacts.find(["name.formatted", "addresses.locality", "addresses.country"], function (contacts) {
t.step(function () {
assert_is_contact(contacts[0]);
assert_contact_same_as(contacts[0], joeContact);
Received on Monday, 23 May 2011 20:47:06 UTC