Extract all QtQuick 1 elements into a separate library/plugin.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativexmlhttprequest / data / setRequestHeader_args.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         x.open("GET", "testdocument.html");
10
11         try {
12             x.setRequestHeader("Test-header");
13         } catch (e) {
14             if (e.code == DOMException.SYNTAX_ERR)
15                 exceptionThrown = true;
16         }
17     }
18 }