Bug 889752 - Ensure that there is no updated folders to make recent folder menu empty. r+a=Standard8
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Fri, 02 Aug 2013 07:40:00 +0100
changeset 15883 bb5e4362e4bfe26b928c8cac9772fbe66e43fb42
parent 15882 0de2769c0ad396c00eed39307aef2ad393d11bff
child 15884 49ef696402ac799fd34608ef49f961d8a2ab6809
push id942
push userbugzilla@standard8.plus.com
push dateMon, 05 Aug 2013 19:15:38 +0000
treeherdercomm-beta@0e1a1c4a9f0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs889752
Bug 889752 - Ensure that there is no updated folders to make recent folder menu empty. r+a=Standard8
mail/test/mozmill/folder-display/test-recent-menu.js
--- a/mail/test/mozmill/folder-display/test-recent-menu.js
+++ b/mail/test/mozmill/folder-display/test-recent-menu.js
@@ -19,16 +19,24 @@ var folder1, folder2, folder3;
 var msgHdr;
 var gInitRecentMenuCount;
 
 var setupModule = function(module) {
   let fdh = collector.getModule('folder-display-helpers');
   fdh.installInto(module);
   let wh = collector.getModule('window-helpers');
   wh.installInto(module);
+
+  // Ensure that there are no updated folders to ensure the recent folder
+  // is empty.
+  let allFolders = MailServices.accounts.allFolders;
+  for (let folder in fixIterator(allFolders, Ci.nsIMsgFolder)) {
+    folder.setStringProperty("MRMTime", "0");
+  }
+
   // Try to make these folders first in alphabetic order
   folder1 = create_folder("aaafolder1");
   folder2 = create_folder("aaafolder2");
 
   make_new_sets_in_folder(folder1, [{count: 3}]);
 }
 
 function test_move_message() {