Bug 1440693 - fix test test_bug366491.js. r=aceman
authorJorg K <jorgk@jorgk.com>
Sun, 04 Mar 2018 17:39:34 +0100
changeset 31213 e3daa718533aca34fb371ddc48424ea1e9812937
parent 31212 0bd5e22ff5bc48ea230ce6d242e98ebad521dee2
child 31214 ba9af888ccb942103737132a7b547d8426d4d6ff
push id383
push userclokep@gmail.com
push dateMon, 07 May 2018 21:52:48 +0000
reviewersaceman
bugs1440693, 366491
Bug 1440693 - fix test test_bug366491.js. r=aceman
mailnews/base/test/unit/test_bug366491.js
--- a/mailnews/base/test/unit/test_bug366491.js
+++ b/mailnews/base/test/unit/test_bug366491.js
@@ -89,11 +89,11 @@ var doTestingListener =
 };
 
 // helper functions
 
 function getSpec(aFileName)
 {
   var file = do_get_file("../../../extensions/bayesian-spam-filter/test/unit/resources/" + aFileName);
   var uri = Services.io.newFileURI(file).QueryInterface(Ci.nsIURL);
-  uri.query = "type=application/x-message-display";
+  uri = uri.mutate().setQuery("type=application/x-message-display").finalize();
   return uri.spec;
 }