Bug 864695 - [Dialer] Numbers starting with 5 retrive wrong phone number suggestions. r=reuben.bmo, r=bent, a=leo+
authorGregor Wagner <anygregor@gmail.com>
Thu, 02 May 2013 15:30:27 -0400
changeset 119252 9e38d8ef1d8f73f6f4e19870bfd76a4116f9fb4d
parent 119251 4aaab00ce324b99f8a4503033e5f47c056ba0dc5
child 119253 c161ceec64805f51a953d1567b2609474f5c399f
push id751
push userryanvm@gmail.com
push dateThu, 02 May 2013 19:32:27 +0000
reviewersreuben, bent, leo
bugs864695
milestone18.0
Bug 864695 - [Dialer] Numbers starting with 5 retrive wrong phone number suggestions. r=reuben.bmo, r=bent, a=leo+
dom/contacts/tests/test_contacts_international.html
--- a/dom/contacts/tests/test_contacts_international.html
+++ b/dom/contacts/tests/test_contacts_international.html
@@ -115,19 +115,17 @@ var steps = [
   },
   function () {
     ok(true, "Searching for international number");
     var options = {filterBy: ["tel"],
                    filterOp: "contains",
                    filterValue: number1.international};
     req = mozContacts.find(options);
     req.onsuccess = function () {
-      ok(req.result.length == 1, "Found exactly 1 contact.");
-      findResult1 = req.result[0];
-      ok(findResult1.id == sample_id1, "Same ID");
+      ok(req.result.length == 0, "Found exactly 0 contacts.");
       next();
     };
     req.onerror = onFailure;
   },
   function () {
     ok(true, "Searching for a short number matching the prefix");
     var shortNumber = number1.local.substring(0, 3);
     var options = {filterBy: ["tel"],
@@ -213,19 +211,17 @@ var steps = [
   },
   function () {
     ok(true, "Searching for local number");
     var options = {filterBy: ["tel"],
                    filterOp: "contains",
                    filterValue: number2.international};
     req = mozContacts.find(options);
     req.onsuccess = function () {
-      ok(req.result.length == 1, "Found exactly 1 contact.");
-      findResult1 = req.result[0];
-      ok(findResult1.id == sample_id1, "Same ID");
+      ok(req.result.length == 0, "Found exactly 1 contact.");
       next();
     };
     req.onerror = onFailure;
   },
   function () {
     ok(true, "all done!\n");
     SimpleTest.finish();
   }