Fix test to account for bug 672843, rs=bustage fix for CLOSED TREE.
authorJoshua Cranmer <Pidgeot18@gmail.com>
Sat, 23 Nov 2013 20:10:23 -0600
changeset 16924 1d01ba2ddd2b190ef59955f7fbe43130eb6f1a29
parent 16923 5bde4ca339af20885daebc62ca40d66582eef4cf
child 16925 0fef4c10f850ccba2794cbb08991741922a06644
push id1074
push userbugzilla@standard8.plus.com
push dateMon, 03 Feb 2014 22:47:23 +0000
treeherdercomm-beta@6b791b5369ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs672843
Fix test to account for bug 672843, rs=bustage fix for CLOSED TREE.
mailnews/addrbook/test/unit/test_bug_448165.js
--- a/mailnews/addrbook/test/unit/test_bug_448165.js
+++ b/mailnews/addrbook/test/unit/test_bug_448165.js
@@ -7,11 +7,11 @@ function run_test() {
   let pab = MailServices.ab.getDirectory(kPABData.URI);
   do_check_true(pab instanceof Ci.nsIAbDirectory);
   try {
     pab.deleteCards(null); // this should throw an error
     do_throw("Error, deleteCards should throw an error when null is passed to it");
   }
   catch (e) {
     // make sure the correct error message was thrown
-    do_check_true(e.toString().contains("NS_ERROR_INVALID_POINTER"));
+    do_check_eq(e.result, Components.results.NS_ERROR_INVALID_POINTER);
   }
 }