diff --git a/autotest/snorebenchmark.cpp b/autotest/snorebenchmark.cpp
index 29dd187..768de13 100644
--- a/autotest/snorebenchmark.cpp
+++ b/autotest/snorebenchmark.cpp
@@ -25,6 +25,7 @@ public:
"Bold
"
"Underline
"
"Font
"
+ "<&>"
"Website
");
private slots:
void benchmarkUtilsToHtml();
@@ -58,11 +59,12 @@ void SnoreBenchmark::benchmarkUtilsToHtml(){
"Bold\n"
"Underline\n"
"Font\n"
+ "<&>"
"Website\n"));
QCOMPARE(Utils::normaliseMarkup(htmlTestString, Utils::HREF | Utils::BOLD | Utils::BREAK |
Utils::UNDERLINE | Utils::FONT | Utils::ITALIC), htmlTestString);
QBENCHMARK{
- Utils::normaliseMarkup(htmlTestString, Utils::NO_MARKUP);
+ Utils::normaliseMarkup(htmlTestString, Utils::HREF);
}
}
@@ -78,7 +80,7 @@ void SnoreBenchmark::benchmarkUtilsToHtmlAllMarkup()
void SnoreBenchmark::benchmarkUtilsToPlain()
{
QBENCHMARK{
- toPlainText(htmlTestString);
+ Utils::normaliseMarkup(htmlTestString, Utils::NO_MARKUP);
}
}
QTEST_MAIN(SnoreBenchmark)