From 363d983f2f65e9b7bdc440d1c4f7b98fafc284bb Mon Sep 17 00:00:00 2001 From: Jedrzej Nowacki Date: Mon, 31 Jan 2011 11:16:17 +0200 Subject: Add new test to tst_QScriptContextInfo. Test checks comparison between two null contexts. Reviewed-by: Kent Hansen --- tests/auto/qscriptcontextinfo/tst_qscriptcontextinfo.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- cgit v0.12