- From: Dominique Hazael-Massieux via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 23 May 2011 16:09:46 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/contacts/tests/test-cases
In directory hutz:/tmp/cvs-serv26693
Modified Files:
find_empty_fields.html
Log Message:
bug fix in variable scope
Index: find_empty_fields.html
===================================================================
RCS file: /sources/public/2009/dap/contacts/tests/test-cases/find_empty_fields.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- find_empty_fields.html 23 May 2011 14:02:13 -0000 1.1
+++ find_empty_fields.html 23 May 2011 16:09:44 -0000 1.2
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>Contacts API - navigator implements contacts.find</title>
+ <title>Contacts API - empty fields list implies null contacts</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>
@@ -32,8 +32,10 @@
navigator.contacts.find([], function (contacts) {
t.step(function () {
- assert_is_contact(contacts[0]);
- assert_contact_same_as(contacts[0], nullContact);
+ for (var i in contacts) {
+ assert_is_contact(contacts[i]);
+ assert_contact_same_as(contacts[i], nullContact);
+ }
t.done();
});
});
Received on Monday, 23 May 2011 16:09:47 UTC