summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJedrzej Nowacki <jedrzej.nowacki@nokia.com>2011-01-31 09:16:17 (GMT)
committerJedrzej Nowacki <jedrzej.nowacki@nokia.com>2011-02-01 13:54:12 (GMT)
commit363d983f2f65e9b7bdc440d1c4f7b98fafc284bb (patch)
treec8a22f7a3524a7cf0b6795ad064bb0c8f7d115b0
parent9c132451acc7fbed1611fd3676cceb26e815f50d (diff)
downloadQt-363d983f2f65e9b7bdc440d1c4f7b98fafc284bb.zip
Qt-363d983f2f65e9b7bdc440d1c4f7b98fafc284bb.tar.gz
Qt-363d983f2f65e9b7bdc440d1c4f7b98fafc284bb.tar.bz2
Add new test to tst_QScriptContextInfo.
Test checks comparison between two null contexts. Reviewed-by: Kent Hansen
-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;