diff UnitTestsSources/UnitTestsMain.cpp @ 1680:03afa09cfcf1

running the tests of the Orthanc Framework in WebAssembly
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 24 Nov 2020 16:39:54 +0100
parents 5b8b88e5bfd6
children 9ac2a65d4172
line wrap: on
line diff
--- a/UnitTestsSources/UnitTestsMain.cpp	Tue Nov 24 12:59:10 2020 +0100
+++ b/UnitTestsSources/UnitTestsMain.cpp	Tue Nov 24 16:39:54 2020 +0100
@@ -64,7 +64,7 @@
   int result;
 
   {
-    Orthanc::Logging::Initialize();
+    OrthancStone::StoneInitialize();
     Orthanc::Logging::EnableInfoLevel(true);
 
     ::testing::InitGoogleTest(&argc, argv);
@@ -75,16 +75,17 @@
   
     result = RUN_ALL_TESTS();
 
-    Orthanc::Logging::Finalize();
-
 #if defined(__EMSCRIPTEN__)
     output = testing::internal::GetCapturedStdout();
 #endif
+
+    OrthancStone::StoneFinalize();
   }
 
 #if defined(__EMSCRIPTEN__)
   EM_ASM({
       document.getElementById("output").innerHTML = UTF8ToString($0);
+      window.scrollTo(0, document.body.scrollHeight); // Scroll to the end of the page
     },
     output.c_str());
 #endif