~ubuntu-branches/ubuntu/trusty/qtdeclarative-opensource-src/trusty-updates

« back to all changes in this revision

Viewing changes to tests/auto/qml/qqmlxmlhttprequest/data/open_arg_count.1.qml

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2013-02-05 14:17:19 UTC
  • Revision ID: package-import@ubuntu.com-20130205141719-qqeyml8wslpyez52
Tags: upstream-5.0.1
ImportĀ upstreamĀ versionĀ 5.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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