17 lines
328 B
QML
17 lines
328 B
QML
import QtQuick 2.3
|
|
import QtTest 1.0
|
|
|
|
import 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 \"")
|
|
}
|
|
|
|
}
|