500f5d5bd78f9e419e113abbf15d34a5a5df2991
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeecmascript / data / scarceResourceDestroyedCopy.var.qml
1 import QtQuick 2.0
2 import Qt.test 1.0
3 import "scarceResourceTest.var.js" as ScarceResourceProviderJs
4
5 // In this case, following the evaluation of the binding,
6 // the scarceResourceTest value should be an invalid variant,
7 // since the scarce resource will have been released.
8
9 QtObject {
10     property MyScarceResourceObject a;
11     a: MyScarceResourceObject { id: scarceResourceProvider }
12     property var scarceResourceCopy: ScarceResourceProviderJs.importReleasedScarceResource(scarceResourceProvider);
13 }