- From: Dominique Hazael-Massieux via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 24 May 2011 06:33:57 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/contacts/tests/test-cases In directory hutz:/tmp/cvs-serv22009 Added Files: find_with_composed_field.html Log Message: simple composed field --- NEW FILE: find_with_composed_field.html --- <!doctype html> <html> <head> <title>Contacts API - Find with composed field in search</title> <script src="../impl.js"></script> <script src="http://w3c-test.org/html/tests/resources/testharness.js"></script> <script src="http://w3c-test.org/html/tests/resources/testharnessreport.js"></script> <script src="common.js"></script> </head> <body> <p>This test assumes that the <a href="joe.vcf">contacts data for Joe Lambda</a> have been loaded in the underlying addressbook.</p> <p>Please select Joe Lambda when prompted.</p> <div id="log"></div> <script> var t = async_test("formatted name 'Joe Lambda' properly returned", {timeout: 15000}); var joeContact = {"id": null, "displayName": null, "name": { "familyName": null, "formatted": "Joe Lambda", "givenName": null, "honoricPrefix": null, "honoricSuffix": null, "middleName": null}, "nickname": null, "phoneNumbers": null, "emails": null, "addresses": null, "ims": null, "organizations": null, "revision": null, "birthday": null, "gender": null, "note": null, "photos": null, "categories": null, "urls": null, "timezone": null}; navigator.contacts.find(["name.formatted"], function (contacts) { t.step(function () { assert_is_contact(contacts[0]); assert_contact_same_as(contacts[0], joeContact); t.done(); }); }); </script> </body> </html>
Received on Tuesday, 24 May 2011 06:33:58 UTC