| changeset 30 | 5dc02b23752f |
| 29:b72c6db6890b | 30:5dc02b23752f |
|---|---|
1 import Qt 4.7 |
|
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 |