tests/auto/declarative/qdeclarativexmlhttprequest/data/responseXML_invalid.qml
changeset 30 5dc02b23752f
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
       
     1 import Qt 4.7
       
     2 
       
     3 QtObject {
       
     4     property bool xmlNull: false
       
     5     property bool dataOK: false
       
     6 
       
     7     Component.onCompleted: {
       
     8         var x = new XMLHttpRequest;
       
     9 
       
    10         x.open("GET", "testdocument.html");
       
    11 
       
    12         // Test to the end
       
    13         x.onreadystatechange = function() {
       
    14             if (x.readyState == XMLHttpRequest.DONE) {
       
    15                 dataOK = (x.responseText == "QML Rocks!\n");
       
    16                 xmlNull = (x.responseXML == null);
       
    17             }
       
    18         }
       
    19 
       
    20 
       
    21         x.send()
       
    22     }
       
    23 }
       
    24