diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-11-11 01:37:43 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-11-11 01:37:43 (GMT) |
commit | d6842127e96bd71f46057d16bfbcb7b5c019b35c (patch) | |
tree | 438343e07429a1aa83405aa730b9cf12c5276291 /tests/auto/declarative/datetimeformatter | |
parent | 318775ded2371b4033b9a06ffec23e75c6dbad96 (diff) | |
download | Qt-d6842127e96bd71f46057d16bfbcb7b5c019b35c.zip Qt-d6842127e96bd71f46057d16bfbcb7b5c019b35c.tar.gz Qt-d6842127e96bd71f46057d16bfbcb7b5c019b35c.tar.bz2 |
Autotests.
Diffstat (limited to 'tests/auto/declarative/datetimeformatter')
-rw-r--r-- | tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp b/tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp index 5899d8d..e9b4879 100644 --- a/tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp +++ b/tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp @@ -81,6 +81,8 @@ void tst_datetimeformatter::date() QVERIFY(formatter->timeText().isEmpty()); QVERIFY(formatter->dateTimeText().isEmpty()); + + delete formatter; } void tst_datetimeformatter::time() @@ -111,6 +113,8 @@ void tst_datetimeformatter::time() QVERIFY(formatter->dateText().isEmpty()); QVERIFY(formatter->dateTimeText().isEmpty()); + + delete formatter; } void tst_datetimeformatter::dateTime() @@ -134,6 +138,8 @@ void tst_datetimeformatter::dateTime() formatter->setDateTimeFormat("M/d/yy H:m:s a"); QCOMPARE(formatter->dateTimeFormat(), QLatin1String("M/d/yy H:m:s a")); QCOMPARE(formatter->dateTimeText(),dateTime.toString("M/d/yy H:m:s a")); + + delete formatter; } QTEST_MAIN(tst_datetimeformatter) |