Bug 1118515 - Log exception in test_setMode.js to investigate the test failure. r=clokep
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Wed, 07 Jan 2015 04:10:00 +0100
changeset 21612 f5f07c62c814bc13840dd43b92cfbabc2f35b28c
parent 21611 ee06e1351a335b1add0611b9cb5025c054d235d3
child 21613 f4fc9cbd61cd5256da4f45d7888cdf2ed4cea1fe
push id1305
push usermbanner@mozilla.com
push dateMon, 23 Feb 2015 19:48:12 +0000
treeherdercomm-beta@3ae4f13858fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersclokep
bugs1118515
Bug 1118515 - Log exception in test_setMode.js to investigate the test failure. r=clokep
chat/protocols/irc/test/test_setMode.js
--- a/chat/protocols/irc/test/test_setMode.js
+++ b/chat/protocols/irc/test/test_setMode.js
@@ -7,17 +7,18 @@ Services.scriptloader.loadSubScript("res
 Services.conversations.initConversations();
 
 
 function FakeAccount() {
   this.normalizeNick = irc.ircAccount.prototype.normalizeNick.bind(this);
 }
 FakeAccount.prototype = {
   __proto__: irc.ircAccount.prototype,
-  setWhois: (n, f) => true
+  setWhois: (n, f) => true,
+  ERROR: do_throw
 }
 
 function run_test() {
   add_test(test_topicSettable);
   add_test(test_topicSettableJoinAsOp);
 
   run_next_test();
 }