summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlexei Rousskikh <ext-alexei.rousskikh@nokia.com>2012-03-01 13:37:03 -0500
committerAndrew Christian <andrew.christian@nokia.com>2012-03-05 12:43:06 +0100
commit5c55284cceea22fcd4768f4b41fcfb7e0f893d0c (patch)
tree5de7023664357de4d690d198a303b95b5184db84 /tests
parentd55adf7a57be778fdf60363f682b77c2bc51f434 (diff)
improved error message; added a non-existent schema error
Change-Id: Icb56fb4d4b3034da10abda9047687aad90d44a23 Reviewed-by: Andrew Christian <andrew.christian@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/jsonschema/tst_jsonschema.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/jsonschema/tst_jsonschema.cpp b/tests/auto/jsonschema/tst_jsonschema.cpp
index 383284b..379d928 100644
--- a/tests/auto/jsonschema/tst_jsonschema.cpp
+++ b/tests/auto/jsonschema/tst_jsonschema.cpp
@@ -122,6 +122,9 @@ void tst_JsonSchema::schemaTest()
item.insert("create-test0", 1);
item.insert("another-field", QLatin1String("uuid:{zxcvbnm}"));
+ result = validator.validateSchema("should_fail", item); // should fail - schema does not exist
+ QVERIFY(!result);
+
result = validator.validateSchema("SchemaTestObject", item);
//qDebug() << "VALID validation result: " << result;
QVERIFY(result);