summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/xmlhttprequest/data/getResponseHeader_unsent.qml
blob: 5abdf0acdd541d691f9bc48d15828b241a2ad271 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Qt 4.6

Object {
    property bool test: false

    Component.onCompleted: {
        var x = new XMLHttpRequest;

        try {
            x.getResponseHeader("Test-header");
        } catch (e) {
            if (e.code == DOMException.INVALID_STATE_ERR)
                test = true;
        }
    }
}