From 34e8dd5d6f250463194e9b7a0f63e7e021ec8d6b Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 26 Jan 2012 12:12:44 +0100 Subject: Add the missing test file and give it a proper name. Change-Id: Icb9bc2aab99d52b5ffbd6153ce94d64a494330d8 Reviewed-by: Denis Dzyubenko --- tests/auto/corelib/json/tst_qtjson.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/auto/corelib/json/tst_qtjson.cpp') diff --git a/tests/auto/corelib/json/tst_qtjson.cpp b/tests/auto/corelib/json/tst_qtjson.cpp index a0f36d551d..dd2d611ded 100644 --- a/tests/auto/corelib/json/tst_qtjson.cpp +++ b/tests/auto/corelib/json/tst_qtjson.cpp @@ -1337,6 +1337,7 @@ void TestQtJson::validation() QVERIFY(!testJson.isEmpty()); QJsonDocument doc = QJsonDocument::fromJson(testJson); + QVERIFY(!doc.isNull()); QByteArray binary = doc.toBinaryData(); @@ -1351,13 +1352,13 @@ void TestQtJson::validation() } - QFile file2(QLatin1String(SRCDIR "foo.json")); -// QVERIFY(file2.open(QFile::ReadOnly)); // ### the file is missing o_O + QFile file2(QLatin1String(SRCDIR "test3.json")); file2.open(QFile::ReadOnly); testJson = file2.readAll(); -// QVERIFY(!testJson.isEmpty()); + QVERIFY(!testJson.isEmpty()); doc = QJsonDocument::fromJson(testJson); + QVERIFY(!doc.isNull()); binary = doc.toBinaryData(); -- cgit v1.2.3