diff options
author | Charles Yin <charles.yin@nokia.com> | 2012-04-19 13:50:39 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-20 08:05:15 +0200 |
commit | 644f469cfffb2eb433128ef273fd6d15dbd15de1 (patch) | |
tree | e7103d7c77949af23febf0e3b005b8ac8f167553 /tests/auto/qml/qqmlengine/tst_qqmlengine.cpp | |
parent | 04794c29cee0d97fb3b32e1c71a072e34ee37e9c (diff) |
Disable local storage if the standard data location is empty
Change-Id: I05ea7fa9521c807099b39e610f965a331e538f6e
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'tests/auto/qml/qqmlengine/tst_qqmlengine.cpp')
-rw-r--r-- | tests/auto/qml/qqmlengine/tst_qqmlengine.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp b/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp index 89fc8e05d9..c039429f48 100644 --- a/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp +++ b/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp @@ -177,7 +177,11 @@ void tst_qqmlengine::offlineStoragePath() QQmlEngine engine; - QDir dir(QStandardPaths::writableLocation(QStandardPaths::DataLocation)); + QString dataLocation = QStandardPaths::writableLocation(QStandardPaths::DataLocation); + + QCOMPARE(dataLocation.isEmpty(), engine.offlineStoragePath().isEmpty()); + + QDir dir(dataLocation); dir.mkpath("QML"); dir.cd("QML"); dir.mkpath("OfflineStorage"); |