summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
index d5162544..ebdbee39 100644
--- a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
+++ b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
@@ -115,7 +115,7 @@ private slots:
void alignments();
void alignments_data();
- // ### these tests may be trivial
+ // ### these tests may be trivial
void hAlign();
void hAlign_RightToLeft();
void vAlign();
@@ -234,7 +234,7 @@ tst_qdeclarativetextedit::tst_qdeclarativetextedit()
// need a different test to do alpha channel test
// << "#AA0011DD"
// << "#00F16B11";
- //
+ //
}
void tst_qdeclarativetextedit::cleanup()
@@ -681,7 +681,7 @@ void tst_qdeclarativetextedit::vAlign()
void tst_qdeclarativetextedit::font()
{
//test size, then bold, then italic, then family
- {
+ {
QString componentStr = "import QtQuick 1.0\nTextEdit { font.pointSize: 40; text: \"Hello World\" }";
QDeclarativeComponent texteditComponent(&engine);
texteditComponent.setData(componentStr.toLatin1(), QUrl());
@@ -693,7 +693,7 @@ void tst_qdeclarativetextedit::font()
QCOMPARE(textEditObject->font().italic(), false);
}
- {
+ {
QString componentStr = "import QtQuick 1.0\nTextEdit { font.bold: true; text: \"Hello World\" }";
QDeclarativeComponent texteditComponent(&engine);
texteditComponent.setData(componentStr.toLatin1(), QUrl());
@@ -704,7 +704,7 @@ void tst_qdeclarativetextedit::font()
QCOMPARE(textEditObject->font().italic(), false);
}
- {
+ {
QString componentStr = "import QtQuick 1.0\nTextEdit { font.italic: true; text: \"Hello World\" }";
QDeclarativeComponent texteditComponent(&engine);
texteditComponent.setData(componentStr.toLatin1(), QUrl());
@@ -714,8 +714,8 @@ void tst_qdeclarativetextedit::font()
QCOMPARE(textEditObject->font().italic(), true);
QCOMPARE(textEditObject->font().bold(), false);
}
-
- {
+
+ {
QString componentStr = "import QtQuick 1.0\nTextEdit { font.family: \"Helvetica\"; text: \"Hello World\" }";
QDeclarativeComponent texteditComponent(&engine);
texteditComponent.setData(componentStr.toLatin1(), QUrl());
@@ -727,7 +727,7 @@ void tst_qdeclarativetextedit::font()
QCOMPARE(textEditObject->font().italic(), false);
}
- {
+ {
QString componentStr = "import QtQuick 1.0\nTextEdit { font.family: \"\"; text: \"Hello World\" }";
QDeclarativeComponent texteditComponent(&engine);
texteditComponent.setData(componentStr.toLatin1(), QUrl());
@@ -759,7 +759,7 @@ void tst_qdeclarativetextedit::color()
}
//test normal
for (int i = 0; i < colorStrings.size(); i++)
- {
+ {
QString componentStr = "import QtQuick 1.0\nTextEdit { color: \"" + colorStrings.at(i) + "\"; text: \"Hello World\" }";
QDeclarativeComponent texteditComponent(&engine);
texteditComponent.setData(componentStr.toLatin1(), QUrl());
@@ -2473,19 +2473,19 @@ void tst_qdeclarativetextedit::testQtQuick11Attributes_data()
QTest::addColumn<QString>("error");
QTest::newRow("canPaste") << "property bool foo: canPaste"
- << "<Unknown File>: ReferenceError: Can't find variable: canPaste"
+ << "<Unknown File>:1: ReferenceError: Can't find variable: canPaste"
<< "";
QTest::newRow("lineCount") << "property int foo: lineCount"
- << "<Unknown File>: ReferenceError: Can't find variable: lineCount"
+ << "<Unknown File>:1: ReferenceError: Can't find variable: lineCount"
<< "";
QTest::newRow("moveCursorSelection") << "Component.onCompleted: moveCursorSelection(0, TextEdit.SelectCharacters)"
- << "<Unknown File>: ReferenceError: Can't find variable: moveCursorSelection"
+ << "<Unknown File>:1: ReferenceError: Can't find variable: moveCursorSelection"
<< "";
QTest::newRow("deselect") << "Component.onCompleted: deselect()"
- << "<Unknown File>: ReferenceError: Can't find variable: deselect"
+ << "<Unknown File>:1: ReferenceError: Can't find variable: deselect"
<< "";
QTest::newRow("onLinkActivated") << "onLinkActivated: {}"