summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/xmlhttprequest/data/instanceStateValues.qml
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-11-09 09:28:31 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-11-09 09:28:31 (GMT)
commit89fa7ae6d922ff5b62fca65eab95f35845c069eb (patch)
treeeddd885fe5a5e606afe60b2f4b2794d601c9a756 /tests/auto/declarative/xmlhttprequest/data/instanceStateValues.qml
parentd3b1232df8fc8b238d1be8301e58c14e7102cce3 (diff)
downloadQt-89fa7ae6d922ff5b62fca65eab95f35845c069eb.zip
Qt-89fa7ae6d922ff5b62fca65eab95f35845c069eb.tar.gz
Qt-89fa7ae6d922ff5b62fca65eab95f35845c069eb.tar.bz2
XMLHttpRequest tests
Diffstat (limited to 'tests/auto/declarative/xmlhttprequest/data/instanceStateValues.qml')
-rw-r--r--tests/auto/declarative/xmlhttprequest/data/instanceStateValues.qml33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/auto/declarative/xmlhttprequest/data/instanceStateValues.qml b/tests/auto/declarative/xmlhttprequest/data/instanceStateValues.qml
new file mode 100644
index 0000000..ab3064f
--- /dev/null
+++ b/tests/auto/declarative/xmlhttprequest/data/instanceStateValues.qml
@@ -0,0 +1,33 @@
+import Qt 4.6
+
+Object {
+ property int unsent
+ property int opened
+ property int headers_received
+ property int loading
+ property int done
+
+ Component.onCompleted: {
+ // Attempt to overwrite and delete values
+ var x = new XMLHttpRequest();
+
+ x.UNSENT = 9;
+ x.OPENED = 9;
+ x.HEADERS_RECEIVED = 9;
+ x.LOADING = 9;
+ x.DONE = 9;
+
+ delete x.UNSENT;
+ delete x.OPENED;
+ delete x.HEADERS_RECEIVED;
+ delete x.LOADING;
+ delete x.DONE;
+
+ unsent = x.UNSENT
+ opened = x.OPENED
+ headers_received = x.HEADERS_RECEIVED
+ loading = x.LOADING
+ done = x.DONE
+ }
+}
+