diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-11-10 03:35:32 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-11-10 03:35:32 (GMT) |
commit | 52e67db5ea3f5bddb3e396ab1afe5cbca3753727 (patch) | |
tree | 075df41b607ac0b7171e08aa0f448c7ac223e217 /tests/auto/declarative/xmlhttprequest/data/send_data.3.qml | |
parent | ca30cacd614b7de8a855a3b4a1dc254c5f9289c9 (diff) | |
parent | 4983b04da9f3258519e4b15f8e593bf2a11f3556 (diff) | |
download | Qt-52e67db5ea3f5bddb3e396ab1afe5cbca3753727.zip Qt-52e67db5ea3f5bddb3e396ab1afe5cbca3753727.tar.gz Qt-52e67db5ea3f5bddb3e396ab1afe5cbca3753727.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'tests/auto/declarative/xmlhttprequest/data/send_data.3.qml')
-rw-r--r-- | tests/auto/declarative/xmlhttprequest/data/send_data.3.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/declarative/xmlhttprequest/data/send_data.3.qml b/tests/auto/declarative/xmlhttprequest/data/send_data.3.qml new file mode 100644 index 0000000..ae5731f --- /dev/null +++ b/tests/auto/declarative/xmlhttprequest/data/send_data.3.qml @@ -0,0 +1,23 @@ +import Qt 4.6 + +Object { + property string url + + property bool dataOK: false + + Component.onCompleted: { + var x = new XMLHttpRequest; + x.open("POST", url); + x.setRequestHeader("Content-Type", "text/plain;charset=latin1"); + + // Test to the end + x.onreadystatechange = function() { + if (x.readyState == XMLHttpRequest.DONE) { + dataOK = (x.responseText == "QML Rocks!\n"); + } + } + + x.send("My Sent Data"); + } +} + |