summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeflickable
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2014-07-25 18:29:19 +0200
committerDavid Faure <david.faure@kdab.com>2014-07-26 00:46:13 +0200
commit8c80dd6a9893c6e323ae69b651efd7b629b2714c (patch)
tree843aa76e5125aa082419140d19e121bbb019ebf3 /tests/auto/declarative/qdeclarativeflickable
parent302687f21c99643a2dd1930a19fde66ba725661e (diff)
QDeclarativeError::toString: improve handling of empty urls.
"file::2:23: ..." is strange to read. Show "<Unknown File>:2:23: ..." instead, by treating empty urls (including "file:") as unknown, and by still showing line and column numbers in such a case. This change makes it possible for QUrl::fromLocalFile("") to return an empty url rather than "file:", which this module was relying upon in the tests. Change-Id: Id6d8aaa73673283cb65cbd1316dca77f859a3f8f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativeflickable')
-rw-r--r--tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp b/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp
index c8a98d33..ae6f55ee 100644
--- a/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp
+++ b/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp
@@ -434,11 +434,11 @@ void tst_qdeclarativeflickable::testQtQuick11Attributes_data()
QTest::addColumn<QString>("error");
QTest::newRow("resizeContent") << "Component.onCompleted: resizeContent(100,100,Qt.point(50,50))"
- << "<Unknown File>: ReferenceError: Can't find variable: resizeContent"
+ << "<Unknown File>:1: ReferenceError: Can't find variable: resizeContent"
<< "";
QTest::newRow("returnToBounds") << "Component.onCompleted: returnToBounds()"
- << "<Unknown File>: ReferenceError: Can't find variable: returnToBounds"
+ << "<Unknown File>:1: ReferenceError: Can't find variable: returnToBounds"
<< "";
}