Bug 1152651, another bustage fix for test_pop3MultiCopy2.js .includes, a=rkent
authorR Kent James <rkent@caspia.com>
Wed, 07 Oct 2015 14:56:48 -0700
changeset 26394 b7780e495c67fd9b6b49e39154506721e39e72fa
parent 26393 27787d7bf72a9f36832491b7b6521ff27f7d1ab0
child 26395 d796372149d321b5374db1e395f473b6c74e4dc6
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)
reviewersrkent
bugs1152651
Bug 1152651, another bustage fix for test_pop3MultiCopy2.js .includes, a=rkent
mailnews/local/test/unit/test_pop3MultiCopy2.js
--- a/mailnews/local/test/unit/test_pop3MultiCopy2.js
+++ b/mailnews/local/test/unit/test_pop3MultiCopy2.js
@@ -70,19 +70,19 @@ add_task(function* maildirToMbox() {
     subjects.push(hdr.subject);
   }
   do_check_eq(messages.length, 2);
 
   // messages should be missing from source
   do_check_eq(gInboxFolder.getTotalMessages(false), 0);
 
   // Check for subjects. maildir order for messages may not match
-  // order for creation, hence the array.includes.
+  // order for creation, hence the indexOf(subject).
   for (let subject of gTestSubjects) {
-    do_check_true(subjects.includes(subject));
+    do_check_true(subjects.indexOf(subject) != -1);
   }
 
   // Make sure the body matches the message.
   enumerator = gTestFolder.msgDatabase.EnumerateMessages();
   while (enumerator.hasMoreElements()) {
     let hdr = enumerator.getNext().QueryInterface(Ci.nsIMsgDBHdr);
     let body = mailTestUtils.loadMessageToString(gTestFolder, hdr);
     do_check_true(body.indexOf(hdr.subject) >= 0);