projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Rename QDeclarative symbols to QQuick and QQml
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
qml
/
qqmlxmlhttprequest
/
data
/
getAllResponseHeaders_sent.qml
1
import QtQuick 2.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