summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qbindablemap/tst_qbindablemap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qbindablemap/tst_qbindablemap.cpp')
-rw-r--r--tests/auto/declarative/qbindablemap/tst_qbindablemap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative/qbindablemap/tst_qbindablemap.cpp b/tests/auto/declarative/qbindablemap/tst_qbindablemap.cpp
index da58857..a8046e6 100644
--- a/tests/auto/declarative/qbindablemap/tst_qbindablemap.cpp
+++ b/tests/auto/declarative/qbindablemap/tst_qbindablemap.cpp
@@ -59,7 +59,7 @@ void tst_QBindableMap::changed()
QmlEngine engine;
QmlContext *ctxt = engine.rootContext();
ctxt->setContextProperty(QLatin1String("data"), &map);
- QmlComponent component(&engine, "<Script script=\"data.key1 = 'Hello World';\"/>");
+ QmlComponent component(&engine, "Script { script: \"data.key1 = 'Hello World';\" }");
component.create();
QCOMPARE(spy.count(), 1);
QList<QVariant> arguments = spy.takeFirst();