diff options
Diffstat (limited to 'tests/auto/declarative/qdeclarativexmlhttprequest/data/defaultState.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativexmlhttprequest/data/defaultState.qml | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/auto/declarative/qdeclarativexmlhttprequest/data/defaultState.qml b/tests/auto/declarative/qdeclarativexmlhttprequest/data/defaultState.qml deleted file mode 100644 index 913fe59f99..0000000000 --- a/tests/auto/declarative/qdeclarativexmlhttprequest/data/defaultState.qml +++ /dev/null @@ -1,30 +0,0 @@ -import QtQuick 2.0 - -QtObject { - property int readyState - property bool statusIsException: false - property bool statusTextIsException: false - property string responseText - property bool responseXMLIsNull - - Component.onCompleted: { - var xhr = new XMLHttpRequest(); - - readyState = xhr.readyState; - try { - status = xhr.status; - } catch (error) { - if (error.code == DOMException.INVALID_STATE_ERR) - statusIsException = true; - } - try { - statusText = xhr.statusText; - } catch (error) { - if (error.code == DOMException.INVALID_STATE_ERR) - statusTextIsException = true; - } - responseText = xhr.responseText; - responseXMLIsNull = (xhr.responseXML == null); - } -} - |