ultimatepp/autotest/EncodeHtml/main.cpp
cxl 79b2f16c00 .autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@15527 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-11-27 16:01:35 +00:00

20 lines
568 B
C++

#include <CtrlLib/CtrlLib.h>
#define TOPICFILE <EncodeHtml/Test.tpp/all.i>
#include <Core/topic_group.h>
using namespace Upp;
GUI_APP_MAIN
{
String path = GetExeDirFile("test.html");
Index<String> css;
String html = EncodeHtml(ParseQTF(GetTopic("topic://EncodeHtml/Test/Test_en-us").text), css,
VectorMap<String, String>(), VectorMap<String, String>(),
GetFileFolder(path));
SaveFile(path, MakeHtml("Test", AsCss(css), html));
DDUMP(SHA1StringS(LoadFile(path)));
CheckLogEtalon();
}