Bug 1005204 - Enable JSStreamWriterTest. no reviews, just enabling a test.
authorBenoit Girard <b56girard@gmail.com>
Fri, 02 May 2014 13:34:29 -0400
changeset 181773 0c9496405c1a9061372285ceacb855edcf8a089c
parent 181772 4e0c131fc5577c8b25b10ea58868edfda0ea66eb
child 181774 023830b8ad98412b2d004421f2034390f0dde2da
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
bugs1005204
milestone32.0a1
Bug 1005204 - Enable JSStreamWriterTest. no reviews, just enabling a test.
tools/profiler/tests/gtest/JSStreamWriterTest.cpp
tools/profiler/tests/gtest/moz.build
--- a/tools/profiler/tests/gtest/JSStreamWriterTest.cpp
+++ b/tools/profiler/tests/gtest/JSStreamWriterTest.cpp
@@ -174,10 +174,10 @@ TEST(JSStreamWriter, Complex2) {
                         b.Value("i");
                     b.EndObject();
                   b.EndArray();
               b.EndObject();
             b.EndArray();
         b.EndObject();
       b.EndArray();
   b.EndObject();
-  ASSERT_TRUE(ss.str().compare("{\"a\":[{\"b\":\"c\",\"d\":[{\"e\":[{\"f\":\"g\"},{\"h\":\"i\"}]}]}]}") 
+  ASSERT_TRUE(ss.str().compare("{\"a\":[{\"b\":\"c\",\"d\":[{\"e\":[{\"f\":\"g\"},{\"h\":\"i\"}]}]}]}") == 0);
 }
--- a/tools/profiler/tests/gtest/moz.build
+++ b/tools/profiler/tests/gtest/moz.build
@@ -13,12 +13,13 @@ if CONFIG['OS_TARGET'] in ('Android', 'L
 
 EXPORT_LIBRARY = True
 
 LOCAL_INCLUDES += [
     '/tools/profiler',
 ]
 
 UNIFIED_SOURCES += [
+    'JSStreamWriterTest.cpp',
     'ThreadProfileTest.cpp',
 ]
 
 FINAL_LIBRARY = 'xul-gtest'