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 26363 71f3e217a757da14b12f6146a245b0e430882266
parent 26362 a10cac67957d47f49be579ac09ecbf28bd1bcacd
child 26364 93bb4b8ccb8869bd9cc8f062caf1a237a2b92f25
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [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);