void revisionOverloads();
void propertyInit();
+ void remoteLoadCrash();
// regression tests for crashes
void crash1();
delete o;
}
+// QTBUG-18268
+void tst_qdeclarativelanguage::remoteLoadCrash()
+{
+ TestHTTPServer server(14448);
+ server.serveDirectory(SRCDIR);
+
+ QDeclarativeComponent component(&engine);
+ component.setData("import QtQuick 1.0; Text {}", QUrl("http://127.0.0.1:14448/data/remoteLoadCrash.qml"));
+ while (component.isLoading())
+ QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents | QEventLoop::WaitForMoreEvents, 50);
+
+ QObject *o = component.create();
+ delete o;
+}
+
QTEST_MAIN(tst_qdeclarativelanguage)
#include "tst_qdeclarativelanguage.moc"