diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-02-24 02:42:00 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-02-24 02:42:00 (GMT) |
commit | 7c76abb0dc4204043bec9b6fa315f9753a7986ae (patch) | |
tree | cee303672cfd138790645e731f2d69472564d4b7 /tests/auto/declarative/qmlxmlhttprequest/data/text.qml | |
parent | 4066e60e859853cfe3240245ba05271e79839506 (diff) | |
download | Qt-7c76abb0dc4204043bec9b6fa315f9753a7986ae.zip Qt-7c76abb0dc4204043bec9b6fa315f9753a7986ae.tar.gz Qt-7c76abb0dc4204043bec9b6fa315f9753a7986ae.tar.bz2 |
Change class prefix to from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX to QDeclarativeXXX.
Diffstat (limited to 'tests/auto/declarative/qmlxmlhttprequest/data/text.qml')
-rw-r--r-- | tests/auto/declarative/qmlxmlhttprequest/data/text.qml | 131 |
1 files changed, 0 insertions, 131 deletions
diff --git a/tests/auto/declarative/qmlxmlhttprequest/data/text.qml b/tests/auto/declarative/qmlxmlhttprequest/data/text.qml deleted file mode 100644 index 4615a07..0000000 --- a/tests/auto/declarative/qmlxmlhttprequest/data/text.qml +++ /dev/null @@ -1,131 +0,0 @@ -import Qt 4.6 - -QtObject { - property bool xmlTest: false - property bool dataOK: false - - Script { - function checkText(text, whitespacetext) - { - if (text == null) - return; - - if (text.nodeName != "#text") - return; - - if (text.nodeValue != "Hello world!") - return; - - if (text.nodeType != 3) - return; - - if (text.parentNode.nodeName != "item") - return; - - if (text.childNodes.length != 0) - return; - - if (text.firstChild != null) - return; - - if (text.lastChild != null) - return; - - if (text.previousSibling != null) - return; - - if (text.nextSibling != null) - return; - - if (text.attributes != null) - return; - - if (text.wholeText != "Hello world!") - return; - - if (text.data != "Hello world!") - return; - - if (text.length != 12) - return; - - if (text.isElementContentWhitespace != false) - return; - - if (whitespacetext.nodeName != "#text") - return; - - if (whitespacetext.nodeValue != " ") - return; - - if (whitespacetext.nodeType != 3) - return; - - if (whitespacetext.parentNode.nodeName != "item") - return; - - if (whitespacetext.childNodes.length != 0) - return; - - if (whitespacetext.firstChild != null) - return; - - if (whitespacetext.lastChild != null) - return; - - if (whitespacetext.previousSibling != null) - return; - - if (whitespacetext.nextSibling != null) - return; - - if (whitespacetext.attributes != null) - return; - - if (whitespacetext.wholeText != " ") - return; - - if (whitespacetext.data != " ") - return; - - if (whitespacetext.length != 3) - return; - - if (whitespacetext.isElementContentWhitespace != true) - return; - - xmlTest = true; - } - - function checkXML(document) - { - checkText(document.documentElement.childNodes[0].childNodes[0], - document.documentElement.childNodes[1].childNodes[0]); - - } - } - - Component.onCompleted: { - var x = new XMLHttpRequest; - - x.open("GET", "text.xml"); - - // Test to the end - x.onreadystatechange = function() { - if (x.readyState == XMLHttpRequest.DONE) { - - dataOK = true; - - if (x.responseXML != null) - checkXML(x.responseXML); - - } - } - - x.send() - } -} - - - - |