summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/xmlhttprequest/data/send_unsent.qml
blob: 76c26a3b6438e55b2e88e508ea593b691655556a (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.send();
        } catch (e) {
            if (e.code == DOMException.INVALID_STATE_ERR)
                test = true;
        }
    }
}