Fix url test in qqmllanguage
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 17 Jun 2013 12:27:55 +0000 (14:27 +0200)
committerLars Knoll <lars.knoll@digia.com>
Mon, 17 Jun 2013 19:21:25 +0000 (21:21 +0200)
In V4 URLs were mapped to strings, with V8 they were mapped to opaque
variants, which is also what we do with v4 at the moment. In the future
we want to provide a real JS API for URLs, but that is a feature that
should be discussed in a wider scope and developed on the dev branch.

Change-Id: I17660066b2797239eddebad03f49ffa424f86f78
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp

index 5a924a9..1a82bac 100644 (file)
@@ -1069,7 +1069,6 @@ void tst_qqmllanguage::bindTypeToJSValue()
     } {
         MyQmlObject *object = root->findChild<MyQmlObject *>("urlProperty");
         QJSValue value = object->qjsvalue();
-        QVERIFY(value.isString());
         QUrl encoded;
         encoded.setEncodedUrl("main.qml?with%3cencoded%3edata", QUrl::TolerantMode);
         QCOMPARE(value.toString(), component.url().resolved(encoded).toString());