aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlxmlhttprequest/data/cdata.qml
diff options
context:
space:
mode:
authorValery Kotov <kotov.valery@gmail.com>2015-04-22 18:18:16 +0300
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-05-05 09:24:23 +0000
commitc331b6b90f14da9cbadb9309fe02baf32edd847a (patch)
tree76aa0c595bb5199bef0a4a61ee9c5363be2e8deb /tests/auto/qml/qqmlxmlhttprequest/data/cdata.qml
parentbc79a3e19598c4491f8cdc9ccd004dd26ffa1da5 (diff)
QMLEngine: Update XHR tests with checking status code
Update QQmlXMLHttpRequest unit tests with checking status code in resopnse message. Task-number: QTBUG-45581 Change-Id: Ia9fdb4463582bdb098be5d0cab022993904a3d51 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tests/auto/qml/qqmlxmlhttprequest/data/cdata.qml')
-rw-r--r--tests/auto/qml/qqmlxmlhttprequest/data/cdata.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/cdata.qml b/tests/auto/qml/qqmlxmlhttprequest/data/cdata.qml
index f558fdadc6..e1b690dbf3 100644
--- a/tests/auto/qml/qqmlxmlhttprequest/data/cdata.qml
+++ b/tests/auto/qml/qqmlxmlhttprequest/data/cdata.qml
@@ -3,6 +3,7 @@ import QtQuick 2.0
QtObject {
property bool xmlTest: false
property bool dataOK: false
+ property int status: 0
function checkCData(text, whitespacetext)
{
@@ -114,12 +115,11 @@ QtObject {
// Test to the end
x.onreadystatechange = function() {
if (x.readyState == XMLHttpRequest.DONE) {
-
dataOK = true;
+ status = x.status;
if (x.responseXML != null)
checkXML(x.responseXML);
-
}
}