Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativexmlhttprequest / data / getResponseHeader_unsent.qml
1 import QtQuick 1.0
2
3 QtObject {
4     property bool test: false
5
6     Component.onCompleted: {
7         var x = new XMLHttpRequest;
8
9         try {
10             x.getResponseHeader("Test-header");
11         } catch (e) {
12             if (e.code == DOMException.INVALID_STATE_ERR)
13                 test = true;
14         }
15     }
16 }