summaryrefslogtreecommitdiff
path: root/tests/auto/declarative/qdeclarativexmlhttprequest/data/getAllResponseHeaders_unsent.qml
blob: d6256ed75fbbefc36dc6027cb625bb9d3313d98c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Qt 4.7

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;
        }
    }
}