aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativexmlhttprequest/data/document.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativexmlhttprequest/data/document.qml')
-rw-r--r--tests/auto/declarative/qdeclarativexmlhttprequest/data/document.qml56
1 files changed, 0 insertions, 56 deletions
diff --git a/tests/auto/declarative/qdeclarativexmlhttprequest/data/document.qml b/tests/auto/declarative/qdeclarativexmlhttprequest/data/document.qml
deleted file mode 100644
index 7695cd76a1..0000000000
--- a/tests/auto/declarative/qdeclarativexmlhttprequest/data/document.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-import QtQuick 2.0
-
-QtObject {
- property bool xmlTest: false
- property bool dataOK: false
-
- function checkXML(document)
- {
- if (document.xmlVersion != "1.0")
- return;
-
- if (document.xmlEncoding != "UTF-8")
- return;
-
- if (document.xmlStandalone != true)
- return;
-
- if (document.documentElement == null)
- return;
-
- if (document.nodeName != "#document")
- return;
-
- if (document.nodeValue != null)
- return;
-
- if (document.parentNode != null)
- return;
-
- // ### Test other node properties
- // ### test encoding (what is a valid qt encoding?)
- xmlTest = true;
- }
-
- Component.onCompleted: {
- var x = new XMLHttpRequest;
-
- x.open("GET", "document.xml");
-
- // Test to the end
- x.onreadystatechange = function() {
- if (x.readyState == XMLHttpRequest.DONE) {
-
- dataOK = true;
-
- if (x.responseXML != null)
- checkXML(x.responseXML);
-
- }
- }
-
- x.send()
- }
-}
-
-