+++ /dev/null
-import QtQuick 2.0
-
-// This test uses a multi-line string which has \r-terminated
-// string fragments. The expression rewriter deliberately doesn't
-// handle \r-terminated string fragments (see QTBUG-24064) and thus
-// this test ensures that we don't crash when the client attempts
-// to invoke a non-compiled dynamic slot.
-
-Item {
- id: root
-
- function dynamicSlot() {
- var someString = "Hello,\r this is a\r multiline string";
- }
-}
void functionAssignment_afterBinding();
void eval();
void function();
- void functionException();
void qtbug_10696();
void qtbug_11606();
void qtbug_11600();
delete o;
}
-void tst_qqmlecmascript::functionException()
-{
- // QTBUG-24037 - shouldn't crash.
- QString errstr = testFileUrl("v8functionException.qml").toString() + QLatin1String(":13: SyntaxError: Unexpected token ILLEGAL");
- QTest::ignoreMessage(QtWarningMsg, qPrintable(errstr));
- QTest::ignoreMessage(QtWarningMsg, "<Unknown File>: Exception occurred during compilation of function: dynamicSlot()");
- QQmlComponent component(&engine, testFileUrl("v8functionException.qml"));
- QObject *o = component.create();
- QVERIFY(o != 0);
- QMetaObject::invokeMethod(o, "dynamicSlot");
- delete o;
-}
-
// Test the "Qt.include" method
void tst_qqmlecmascript::include()
{