diff options
Diffstat (limited to 'tests/auto/qml/qqmlxmlhttprequest/data/open_arg_count.1.qml')
-rw-r--r-- | tests/auto/qml/qqmlxmlhttprequest/data/open_arg_count.1.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/open_arg_count.1.qml b/tests/auto/qml/qqmlxmlhttprequest/data/open_arg_count.1.qml new file mode 100644 index 0000000000..61ef76d488 --- /dev/null +++ b/tests/auto/qml/qqmlxmlhttprequest/data/open_arg_count.1.qml @@ -0,0 +1,18 @@ +import QtQuick 2.0 + +QtObject { + property bool exceptionThrown: false + + Component.onCompleted: { + var x = new XMLHttpRequest; + + try { + x.open("GET"); + } catch (e) { + if (e.code == DOMException.SYNTAX_ERR) + exceptionThrown = true; + } + } +} + + |