diff options
Diffstat (limited to 'tests/auto/declarative/qmlxmlhttprequest/data/getAllResponseHeaders_unsent.qml')
-rw-r--r-- | tests/auto/declarative/qmlxmlhttprequest/data/getAllResponseHeaders_unsent.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlxmlhttprequest/data/getAllResponseHeaders_unsent.qml b/tests/auto/declarative/qmlxmlhttprequest/data/getAllResponseHeaders_unsent.qml new file mode 100644 index 0000000..20fb040 --- /dev/null +++ b/tests/auto/declarative/qmlxmlhttprequest/data/getAllResponseHeaders_unsent.qml @@ -0,0 +1,16 @@ +import Qt 4.6 + +QtObject { + property bool test: false + + Component.onCompleted: { + var x = new XMLHttpRequest; + + try { + x.getAllResponseHeaders(); + } catch (e) { + if (e.code == DOMException.INVALID_STATE_ERR) + test = true; + } + } +} |