Commit 8a6c2a60 authored by Thomas Hartmann's avatar Thomas Hartmann

Tests.QmlDesigner: fix testRewriterErrors

Error {} was not an Error anymore since we ignore unknown types.
Rectangle does not have the property test. This triggers an error.

Change-Id: I838b12ba15c394a34f6f9176e5eb5826d54b0f2b
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent f1962c9b
......@@ -295,7 +295,6 @@ void tst_TestCore::testRewriterView()
void tst_TestCore::testRewriterErrors()
{
QSKIP("Rewriter has problems with the Error item", SkipAll);
QPlainTextEdit textEdit;
textEdit.setPlainText("import QtQuick 1.1;\n\nItem {\n}\n");
NotIndentingTextEditModifier textModifier(&textEdit);
......@@ -314,7 +313,7 @@ void tst_TestCore::testRewriterErrors()
model->attachView(testRewriterView.data());
QVERIFY(testRewriterView->errors().isEmpty());
textEdit.setPlainText("import QtQuick 1.1;\n\nError {\n}\n");
textEdit.setPlainText("import QtQuick 1.1;\nRectangle {\ntest: blah\n}\n");
QVERIFY(!testRewriterView->errors().isEmpty());
textEdit.setPlainText("import QtQuick 1.1;\n\nItem {\n}\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment