aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativexmlhttprequest/data/send_alreadySent.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativexmlhttprequest/data/send_alreadySent.qml')
-rw-r--r--tests/auto/declarative/qdeclarativexmlhttprequest/data/send_alreadySent.qml28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/auto/declarative/qdeclarativexmlhttprequest/data/send_alreadySent.qml b/tests/auto/declarative/qdeclarativexmlhttprequest/data/send_alreadySent.qml
deleted file mode 100644
index 4e0caa7171..0000000000
--- a/tests/auto/declarative/qdeclarativexmlhttprequest/data/send_alreadySent.qml
+++ /dev/null
@@ -1,28 +0,0 @@
-import QtQuick 2.0
-
-QtObject {
- property bool dataOK: false
- property bool test: false
-
- Component.onCompleted: {
- var x = new XMLHttpRequest;
- x.open("GET", "testdocument.html");
- x.setRequestHeader("Accept-Language","en-US");
-
- // Test to the end
- x.onreadystatechange = function() {
- if (x.readyState == XMLHttpRequest.DONE) {
- dataOK = (x.responseText == "QML Rocks!\n");
- }
- }
-
- x.send();
-
- try {
- x.send()
- } catch (e) {
- if (e.code == DOMException.INVALID_STATE_ERR)
- test = true;
- }
- }
-}