diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-11-09 09:28:31 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-11-09 09:28:31 (GMT) |
commit | 89fa7ae6d922ff5b62fca65eab95f35845c069eb (patch) | |
tree | eddd885fe5a5e606afe60b2f4b2794d601c9a756 /tests/auto/declarative/xmlhttprequest/data/instanceStateValues.qml | |
parent | d3b1232df8fc8b238d1be8301e58c14e7102cce3 (diff) | |
download | Qt-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.qml | 33 |
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 + } +} + |