summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.3.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.3.qml')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.3.qml13
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.3.qml b/tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.3.qml
index c95ffbf..2a66bed 100644
--- a/tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.3.qml
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.3.qml
@@ -1,19 +1,14 @@
import Qt.test 1.0
-import Qt 4.6
+import Qt 4.7
+import "scriptDisconnect.1.js" as Script
MyQmlObject {
property int test: 0
id: root
- Script {
- function testFunction() {
- test++;
- }
- }
+ Component.onCompleted: root.argumentSignal.connect(root, Script.testFunction);
- Component.onCompleted: root.argumentSignal.connect(root, testFunction);
-
- onBasicSignal: root.argumentSignal.disconnect(testFunction);
+ onBasicSignal: root.argumentSignal.disconnect(Script.testFunction);
}