Extract all QtQuick 1 elements into a separate library/plugin.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativexmlhttprequest / data / open_arg_count.1.qml
1 import QtQuick 2.0
2
3 QtObject {
4     property bool exceptionThrown: false
5
6     Component.onCompleted: {
7         var x = new XMLHttpRequest;
8
9         try {
10             x.open("GET");
11         } catch (e) {
12             if (e.code == DOMException.SYNTAX_ERR)
13                 exceptionThrown = true;
14         }
15     }
16 }
17
18