From d554bf5e2a035d234241075157232ad2e4fd94bb Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Tue, 18 Oct 2022 16:18:31 +0200 Subject: [PATCH] QmlDesigner: Remove check if setIdWithoutRefactoring throws We don't throw any exception anymore in that case. Change-Id: I881f22b560081beff6a6275783061228e64cbb28 Reviewed-by: Reviewed-by: Thomas Hartmann --- tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp b/tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp index 04de2da151b..0b3d073662d 100644 --- a/tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp +++ b/tests/auto/qml/qmldesigner/coretests/tst_testcore.cpp @@ -1757,13 +1757,6 @@ void tst_TestCore::testModelCreateSubNode() expectedCalls << TestView::MethodCall("nodeIdChanged", QStringList() << "blah" << "blah" << ""); QCOMPARE(view->methodCalls(), expectedCalls); - try { - childNode.setIdWithoutRefactoring("invalid id"); - QFAIL("Setting an invalid id does not throw an exception"); - } catch (Exception &exception) { - QCOMPARE(exception.type(), QString("InvalidIdException")); - } - QCOMPARE(childNode.id(), QString("blah")); QCOMPARE(view->methodCalls(), expectedCalls);