diff options
author | Valery Kotov <kotov.valery@gmail.com> | 2015-04-22 18:18:16 +0300 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-05-05 09:24:23 +0000 |
commit | c331b6b90f14da9cbadb9309fe02baf32edd847a (patch) | |
tree | 76aa0c595bb5199bef0a4a61ee9c5363be2e8deb /tests/auto/qml/qqmlxmlhttprequest/data/cdata.qml | |
parent | bc79a3e19598c4491f8cdc9ccd004dd26ffa1da5 (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.qml | 4 |
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); - } } |