aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativexmlhttprequest/data/attr.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativexmlhttprequest/data/attr.qml')
-rw-r--r--tests/auto/declarative/qdeclarativexmlhttprequest/data/attr.qml78
1 files changed, 0 insertions, 78 deletions
diff --git a/tests/auto/declarative/qdeclarativexmlhttprequest/data/attr.qml b/tests/auto/declarative/qdeclarativexmlhttprequest/data/attr.qml
deleted file mode 100644
index b1c081c5fd..0000000000
--- a/tests/auto/declarative/qdeclarativexmlhttprequest/data/attr.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-import QtQuick 2.0
-
-QtObject {
- property bool xmlTest: false
- property bool dataOK: false
-
- function checkAttr(documentElement, attr)
- {
- if (attr == null)
- return;
-
- if (attr.name != "attr")
- return;
-
- if (attr.value != "myvalue")
- return;
-
- if (attr.ownerElement.tagName != documentElement.tagName)
- return;
-
- if (attr.nodeName != "attr")
- return;
-
- if (attr.nodeValue != "myvalue")
- return;
-
- if (attr.nodeType != 2)
- return;
-
- if (attr.childNodes.length != 0)
- return;
-
- if (attr.firstChild != null)
- return;
-
- if (attr.lastChild != null)
- return;
-
- if (attr.previousSibling != null)
- return;
-
- if (attr.nextSibling != null)
- return;
-
- if (attr.attributes != null)
- return;
-
- xmlTest = true;
- }
-
- function checkXML(document)
- {
- checkAttr(document.documentElement, document.documentElement.attributes[0]);
- }
-
- Component.onCompleted: {
- var x = new XMLHttpRequest;
-
- x.open("GET", "attr.xml");
-
- // Test to the end
- x.onreadystatechange = function() {
- if (x.readyState == XMLHttpRequest.DONE) {
-
- dataOK = true;
-
- if (x.responseXML != null)
- checkXML(x.responseXML);
-
- }
- }
-
- x.send()
- }
-}
-
-
-