diff options
Diffstat (limited to 'tests/auto/declarative/qdeclarativexmlhttprequest/data/callbackException.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativexmlhttprequest/data/callbackException.qml | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/auto/declarative/qdeclarativexmlhttprequest/data/callbackException.qml b/tests/auto/declarative/qdeclarativexmlhttprequest/data/callbackException.qml deleted file mode 100644 index ee1043f97f..0000000000 --- a/tests/auto/declarative/qdeclarativexmlhttprequest/data/callbackException.qml +++ /dev/null @@ -1,25 +0,0 @@ -import QtQuick 2.0 - -QtObject { - id: obj - property string url - property string which - property bool threw: false - - onWhichChanged: { - var x = new XMLHttpRequest; - - x.onreadystatechange = function() { - if (x.readyState == which) { - obj.threw = true - throw(new Error("Exception from Callback")) - } - } - - x.open("GET", url); - x.setRequestHeader("Test-header", "TestValue"); - x.send(); - } -} - - |