diff options
Diffstat (limited to 'tests/auto/qml/qqmllistmodel/tst_qqmllistmodel.cpp')
-rw-r--r-- | tests/auto/qml/qqmllistmodel/tst_qqmllistmodel.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllistmodel/tst_qqmllistmodel.cpp b/tests/auto/qml/qqmllistmodel/tst_qqmllistmodel.cpp index c2f9cfbc11..3d0aaf1147 100644 --- a/tests/auto/qml/qqmllistmodel/tst_qqmllistmodel.cpp +++ b/tests/auto/qml/qqmllistmodel/tst_qqmllistmodel.cpp @@ -121,6 +121,7 @@ private slots: void empty_element_warning_data(); void datetime(); void datetime_data(); + void url(); void about_to_be_signals(); void modify_through_delegate(); void bindingsOnGetResult(); @@ -1392,6 +1393,16 @@ void tst_qqmllistmodel::datetime_data() QTest::newRow("dt4") << "{append({'date':dt0});setProperty(0,'date',dt1);get(0).date}" << dt1; } +void tst_qqmllistmodel::url() +{ + QQmlEngine engine; + QQmlComponent comp(&engine, testFileUrl("urls.qml")); + QScopedPointer<QObject> o {comp.create()}; + QVERIFY(o); + QCOMPARE(o->property("result1").toUrl(), QUrl("http://qt.io")); + QCOMPARE(o->property("result2").toUrl(), QUrl("http://qt-project.org")); +} + void tst_qqmllistmodel::datetime() { QFETCH(QString, qml); |