qt6-bb10/qtdeclarative/tests/auto/qml/qqmlxmlhttprequest/data/responseXML_invalid.qml

25 lines
498 B
QML

import QtQuick 2.0
QtObject {
property bool xmlNull: false
property bool dataOK: false
Component.onCompleted: {
var x = new XMLHttpRequest;
x.open("GET", "testdocument.html");
// Test to the end
x.onreadystatechange = function() {
if (x.readyState == XMLHttpRequest.DONE) {
dataOK = (x.responseText == "QML Rocks!\n");
xmlNull = (x.responseXML == null);
}
}
x.send()
}
}