Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativexmlhttprequest / data / getAllResponseHeaders_sent.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         x.open("GET", "testdocument.html");
10         x.send();
11
12         try {
13             x.getAllResponseHeaders();
14         } catch (e) {
15             if (e.code == DOMException.INVALID_STATE_ERR)
16                 test = true;
17         }
18     }
19 }
20