15 lines
320 B
QML
15 lines
320 B
QML
import QtTest 1.10
|
|
|
|
import Governikus.Global 1.0
|
|
|
|
TestCase {
|
|
name: "MathTests"
|
|
|
|
|
|
function test_escapeHtml() {
|
|
compare(Utils.escapeHtml("a&b"), "a&b", "escape &")
|
|
compare(Utils.escapeHtml("<br/>"), "<br/>", "escape < and >")
|
|
compare(Utils.escapeHtml("\"Hello\""), ""Hello"", "escape \"")
|
|
}
|
|
}
|