summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlxmlhttprequest/data/send_data.2.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qmlxmlhttprequest/data/send_data.2.qml')
-rw-r--r--tests/auto/declarative/qmlxmlhttprequest/data/send_data.2.qml23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/auto/declarative/qmlxmlhttprequest/data/send_data.2.qml b/tests/auto/declarative/qmlxmlhttprequest/data/send_data.2.qml
deleted file mode 100644
index 79a27b6..0000000
--- a/tests/auto/declarative/qmlxmlhttprequest/data/send_data.2.qml
+++ /dev/null
@@ -1,23 +0,0 @@
-import Qt 4.6
-
-QtObject {
- property string url
-
- property bool dataOK: false
-
- Component.onCompleted: {
- var x = new XMLHttpRequest;
- x.open("POST", url);
- x.setRequestHeader("Content-Type", "text/plain;charset=UTF-8");
-
- // Test to the end
- x.onreadystatechange = function() {
- if (x.readyState == XMLHttpRequest.DONE) {
- dataOK = (x.responseText == "QML Rocks!\n");
- }
- }
-
- x.send("My Sent Data");
- }
-}
-