Bug 1431913 - fix test_dod.js. rs=bustage-fix
authorJorg K <jorgk@jorgk.com>
Mon, 22 Jan 2018 12:28:59 +0100
changeset 30041 d10e311b217af59593eb04d57be03fca16df6281
parent 30040 26ee9005950789a7a3963618470f9c76c404f016
child 30042 ec015f717cb05fdf8d6057a6526d8cdce9378eb5
push id2108
push userclokep@gmail.com
push dateMon, 22 Jan 2018 17:53:55 +0000
treeherdercomm-beta@c44930d8ad9b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1431913
Bug 1431913 - fix test_dod.js. rs=bustage-fix
mailnews/imap/test/unit/test_dod.js
--- a/mailnews/imap/test/unit/test_dod.js
+++ b/mailnews/imap/test/unit/test_dod.js
@@ -74,18 +74,17 @@ function* streamMessages() {
     let marker;
     if (isPlain)
       marker = "thisplaintextneedstodisplaytopasstest";
     else
       marker = "thishtmltextneedstodisplaytopasstest";
 
     for (let i = 1; i < inbox.uidnext ; i++) {
       let uri = {};
-      imapS.GetUrlForUri("imap-message://user@localhost/INBOX#" + i,uri,null);
-      uri.value.spec += "?header=quotebody";
+      imapS.GetUrlForUri("imap-message://user@localhost/INBOX#" + i + "?header=quotebody", uri, null);
       let channel = Services.io.newChannelFromURI2(uri.value,
                                                    null,
                                                    Services.scriptSecurityManager.getSystemPrincipal(),
                                                    null,
                                                    Ci.nsILoadInfo.SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
                                                    Ci.nsIContentPolicy.TYPE_OTHER);
       channel.asyncOpen(gStreamListener, null);
       yield false;