diff options
Diffstat (limited to 'tests/auto/declarative/qdeclarativexmlhttprequest/data/send_ignoreData.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativexmlhttprequest/data/send_ignoreData.qml | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/auto/declarative/qdeclarativexmlhttprequest/data/send_ignoreData.qml b/tests/auto/declarative/qdeclarativexmlhttprequest/data/send_ignoreData.qml deleted file mode 100644 index 336971c919..0000000000 --- a/tests/auto/declarative/qdeclarativexmlhttprequest/data/send_ignoreData.qml +++ /dev/null @@ -1,27 +0,0 @@ -import QtQuick 2.0 - -QtObject { - property string reqType - property string url - - property bool dataOK: false - - Component.onCompleted: { - var x = new XMLHttpRequest; - x.open(reqType, url); - x.setRequestHeader("Accept-Language","en-US"); - - // Test to the end - x.onreadystatechange = function() { - if (x.readyState == XMLHttpRequest.DONE) { - if (reqType == "HEAD" || reqType == "DELETE") - dataOK = (x.responseText == ""); - else - dataOK = (x.responseText == "QML Rocks!\n"); - } - } - - x.send("Data To Ignore"); - } -} - |