Bug 1511885 - Follow-up: Fix failure in test_uid.js similar to rev 707388b59cb5. r+a=me THUNDERBIRD_60_4_0_BUILD2 THUNDERBIRD_60_4_0_RELEASE
authorJorg K <jorgk@jorgk.com>
Mon, 17 Dec 2018 11:11:44 +0100
changeset 31993 945fb5fce3d3b44de337fabe8d962eee201f6a8b
parent 31992 2788ee37b02a876421b8c24477f4ffd7600faaaf
child 31994 6274779bc5d4dd26408a86a49007d900213bbe12
push id127
push usermozilla@jorgk.com
push dateMon, 17 Dec 2018 10:13:53 +0000
treeherdercomm-esr60@945fb5fce3d3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1511885
Bug 1511885 - Follow-up: Fix failure in test_uid.js similar to rev 707388b59cb5. r+a=me
mailnews/addrbook/test/unit/test_uid.js
--- a/mailnews/addrbook/test/unit/test_uid.js
+++ b/mailnews/addrbook/test/unit/test_uid.js
@@ -41,17 +41,20 @@ add_task(async function existingContactU
 
   let card = bookCards[0];
   if (card.isMailList) {
     card = bookCards[1];
   }
   equal(36, card.UID.length, "Existing contact has a UID");
 
   let existingUID = card.UID;
-  bookCards = [...book.childCards];
+  bookCards = [];
+  childCards = book.childCards;
+  while (childCards.hasMoreElements())
+    bookCards.push(childCards.getNext().QueryInterface(Ci.nsIAbCard));
   card = bookCards[0];
   if (card.isMailList) {
     card = bookCards[1];
   }
   equal(existingUID, card.UID, "New reference to contact has the same UID");
 
   let abFile = profD.clone();
   abFile.append(kPABData.fileName);