summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp')
-rw-r--r--tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp b/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp
index aba16b2..89c5330 100644
--- a/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp
+++ b/tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp
@@ -93,6 +93,7 @@ private slots:
void qtPropertyFunction();
void nullContext();
void streaming();
+ void comparison_null();
void assignmentAndComparison();
};
@@ -366,6 +367,13 @@ void tst_QScriptContextInfo::streaming()
}
}
+void tst_QScriptContextInfo::comparison_null()
+{
+ QScriptContextInfo info1, info2, info3(0);
+ QCOMPARE(info1, info2);
+ QCOMPARE(info1, info3);
+}
+
void tst_QScriptContextInfo::assignmentAndComparison()
{
QScriptEngine eng;