Bug 1152743, bustage fix for test_pop3MultiCopy.js, a=bustage
authorR Kent James <rkent@caspia.com>
Mon, 14 Sep 2015 21:37:31 -0700
changeset 22895 31f969d986fd81889f7d49a253e344c4c99dc0f1
parent 22894 3db4218c150aa0882a95c66b63ab3c1221d5bc6c
child 22896 9e9681b23bd68c8b09d82f9f76d040ab63fbe8c4
push id1468
push userkent@caspia.com
push dateTue, 15 Sep 2015 04:41:42 +0000
treeherdercomm-beta@31f969d986fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1152743
Bug 1152743, bustage fix for test_pop3MultiCopy.js, a=bustage
mailnews/local/test/unit/test_pop3MultiCopy.js
--- a/mailnews/local/test/unit/test_pop3MultiCopy.js
+++ b/mailnews/local/test/unit/test_pop3MultiCopy.js
@@ -71,17 +71,17 @@ add_task(function* runPump() {
     dump("Subject: " + hdr.subject + "\n");
     subjects.push(hdr.subject);
   }
   do_check_eq(messages.length, 2);
 
   // Check for subjects. maildir order for messages may not match
   // order for creation, hence the array.includes.
   for (let subject of testSubjects) {
-    do_check_true(subjects.includes(subject));
+    do_check_true(subjects.indexOf(subject) >= 0);
   }
 
   // Make sure the body matches the message.
   enumerator = testFolder.msgDatabase.EnumerateMessages();
   while (enumerator.hasMoreElements()) {
     let hdr = enumerator.getNext().QueryInterface(Ci.nsIMsgDBHdr);
     let body = mailTestUtils.loadMessageToString(testFolder, hdr);
     do_check_true(body.indexOf(hdr.subject) >= 0);