Bug 637325 - Fix a typo in xpcom/tests/TestStrings.cpp:test_strip_chars. r=bsmedberg a=tests
authorMounir Lamouri <mounir.lamouri@gmail.com>
Fri, 18 Mar 2011 15:13:40 +0100
changeset 63438 bb383015d668aa67781ef00eb85b6ea1cf8a82a1
parent 63437 55f34457893202d4eff1786c743ebbde971ca778
child 63439 af5988b2e2ca4d3c01a1b2f17ba695812cad0da9
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewersbsmedberg, tests
bugs637325
milestone2.0b13pre
Bug 637325 - Fix a typo in xpcom/tests/TestStrings.cpp:test_strip_chars. r=bsmedberg a=tests
xpcom/tests/TestStrings.cpp
--- a/xpcom/tests/TestStrings.cpp
+++ b/xpcom/tests/TestStrings.cpp
@@ -1046,30 +1046,30 @@ static PRBool test_strip_chars_helper(co
   data.StripChars(strip, offset);
   return data.Equals(result);
 }
 
 static PRBool test_strip_chars()
 {
   return test_strip_chars_helper(NS_LITERAL_STRING("foo \r \nbar").get(),
                                  NS_LITERAL_STRING(" \n\r").get(),
-                                 NS_LITERAL_STRING("foobar"));
+                                 NS_LITERAL_STRING("foobar")) &&
          test_strip_chars_helper(NS_LITERAL_STRING("\r\nfoo\r\n").get(),
                                  NS_LITERAL_STRING(" \n\r").get(),
                                  NS_LITERAL_STRING("foo")) &&
          test_strip_chars_helper(NS_LITERAL_STRING("foo").get(),
                                  NS_LITERAL_STRING(" \n\r").get(),
                                  NS_LITERAL_STRING("foo")) &&
          test_strip_chars_helper(NS_LITERAL_STRING("foo").get(),
                                  NS_LITERAL_STRING("fo").get(),
                                  NS_LITERAL_STRING("")) &&
          test_strip_chars_helper(NS_LITERAL_STRING("foo").get(),
                                  NS_LITERAL_STRING("foo").get(),
                                  NS_LITERAL_STRING("")) &&
-         test_strip_chars_helper(NS_LITERAL_STRING("foo").get(),
+         test_strip_chars_helper(NS_LITERAL_STRING(" foo").get(),
                                  NS_LITERAL_STRING(" ").get(),
                                  NS_LITERAL_STRING(" foo"), 1);
 }
 
 static PRBool test_huge_capacity()
 {
   nsString a, b, c, d, e, f, g, h, i, j, k, l, m, n;
   nsCString n1;