summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTapani Mikola <tapani.mikola@nokia.com>2012-05-29 10:35:49 +0300
committerQt by Nokia <qt-info@nokia.com>2012-05-29 10:13:11 +0200
commit6c67754078f88c2af0f0d60ab153bae3bf48d98a (patch)
tree9d2862b74805b6cd29161df8a5e6fa7a18eaba89 /tests
parent69c1143c96363a90caa7cebeac7818840a44c120 (diff)
Revert "Added QJsonDbRequest::error() and errorString()."
This reverts commit deac81d4ef114ffc157467183d02d539618a14d1. Breaks the connect because of overloaded error (signal and function) Change-Id: If46e8be5f090ef97f5b832a86c0b81bcb4aa9cb7 Reviewed-by: Ian Monroe <ian.monroe@nokia.com> Reviewed-by: Tapani Mikola <tapani.mikola@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qjsondbrequest/testqjsondbrequest.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/auto/qjsondbrequest/testqjsondbrequest.cpp b/tests/auto/qjsondbrequest/testqjsondbrequest.cpp
index f6c6f1ac..7a4dd110 100644
--- a/tests/auto/qjsondbrequest/testqjsondbrequest.cpp
+++ b/tests/auto/qjsondbrequest/testqjsondbrequest.cpp
@@ -108,7 +108,6 @@ private slots:
void bindings();
void replaceFromNull();
void multiplerequests();
- void lastError();
private:
bool writeTestObject(QObject* parent, const QString &type, int value, const QString &partition = QString());
@@ -1259,18 +1258,6 @@ void TestQJsonDbRequest::bindings()
}
}
-void TestQJsonDbRequest::lastError()
-{
- QJsonDbObject item;
- item.insert(QStringLiteral("foo"), QStringLiteral("bar"));
- QJsonDbCreateRequest write(item);
- mConnection->send(&write);
- waitForResponse(&write);
- QCOMPARE((int)mRequestErrors[&write], (int)QJsonDbRequest::MissingType);
- QCOMPARE((int)write.error(), (int)QJsonDbRequest::MissingType);
- QCOMPARE(write.errorString(), QLatin1String("Missing '_type' field in object"));
-}
-
QTEST_MAIN(TestQJsonDbRequest)
#include "testqjsondbrequest.moc"