summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlxmlhttprequest/data/open_sync.qml
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-02-14 23:37:12 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-02-14 23:37:12 (GMT)
commit0010cbdd14ce167857ae9eb8f539ad7b1205542a (patch)
tree92d8b31cece70ad76abc867e3a34567a1e2c116c /tests/auto/declarative/qmlxmlhttprequest/data/open_sync.qml
parent9bca64fc5eee598f97eba1052f1db250c5c7e43b (diff)
parent42dda19d82ceea48f19d356cfaf2b26acb763df8 (diff)
downloadQt-0010cbdd14ce167857ae9eb8f539ad7b1205542a.zip
Qt-0010cbdd14ce167857ae9eb8f539ad7b1205542a.tar.gz
Qt-0010cbdd14ce167857ae9eb8f539ad7b1205542a.tar.bz2
Merge branch 'master' of ../../qt/master
Diffstat (limited to 'tests/auto/declarative/qmlxmlhttprequest/data/open_sync.qml')
-rw-r--r--tests/auto/declarative/qmlxmlhttprequest/data/open_sync.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlxmlhttprequest/data/open_sync.qml b/tests/auto/declarative/qmlxmlhttprequest/data/open_sync.qml
new file mode 100644
index 0000000..1477279
--- /dev/null
+++ b/tests/auto/declarative/qmlxmlhttprequest/data/open_sync.qml
@@ -0,0 +1,17 @@
+import Qt 4.6
+
+QtObject {
+ property bool exceptionThrown: false
+
+ Component.onCompleted: {
+ var x = new XMLHttpRequest;
+
+ try {
+ x.open("GET", "http://www.nokia.com", false);
+ } catch (e) {
+ if (e.code == DOMException.NOT_SUPPORTED_ERR)
+ exceptionThrown = true;
+ }
+ }
+}
+