aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlxmlhttprequest/data/open_sync.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlxmlhttprequest/data/open_sync.qml')
-rw-r--r--tests/auto/qml/qqmlxmlhttprequest/data/open_sync.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/open_sync.qml b/tests/auto/qml/qqmlxmlhttprequest/data/open_sync.qml
new file mode 100644
index 0000000000..eafdda761f
--- /dev/null
+++ b/tests/auto/qml/qqmlxmlhttprequest/data/open_sync.qml
@@ -0,0 +1,17 @@
+import QtQuick 2.0
+
+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;
+ }
+ }
+}
+