void aliasPropertyAndBinding();
void nonExistentAttachedObject();
void scope();
+ void importScope();
void signalParameterTypes();
void objectsCompareAsEqual();
void dynamicCreation_data();
}
}
+// In 4.7, non-library javascript files that had no imports shared the imports of their
+// importing context
+void tst_qdeclarativeecmascript::importScope()
+{
+ QDeclarativeComponent component(&engine, TEST_FILE("importScope.qml"));
+ QObject *o = component.create();
+ QVERIFY(o != 0);
+
+ QCOMPARE(o->property("test").toInt(), 240);
+
+ delete o;
+}
+
/*
Tests that "any" type passes through a synthesized signal parameter. This
is essentially a test of QDeclarativeMetaType::copy()