aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickstyledtext/tst_qquickstyledtext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickstyledtext/tst_qquickstyledtext.cpp')
-rw-r--r--tests/auto/quick/qquickstyledtext/tst_qquickstyledtext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/qquickstyledtext/tst_qquickstyledtext.cpp b/tests/auto/quick/qquickstyledtext/tst_qquickstyledtext.cpp
index 3c05d4ac73..95e495a74e 100644
--- a/tests/auto/quick/qquickstyledtext/tst_qquickstyledtext.cpp
+++ b/tests/auto/quick/qquickstyledtext/tst_qquickstyledtext.cpp
@@ -176,9 +176,9 @@ void tst_qquickstyledtext::textOutput()
QCOMPARE(layoutFormats.at(i).start, formats.at(i).start);
QCOMPARE(layoutFormats.at(i).length, formats.at(i).length);
if (formats.at(i).type & Format::Bold)
- QVERIFY(layoutFormats.at(i).format.fontWeight() == QFont::Bold);
+ QCOMPARE(layoutFormats.at(i).format.fontWeight(), int(QFont::Bold));
else
- QVERIFY(layoutFormats.at(i).format.fontWeight() == QFont::Normal);
+ QCOMPARE(layoutFormats.at(i).format.fontWeight(), int(QFont::Normal));
QVERIFY(layoutFormats.at(i).format.fontItalic() == bool(formats.at(i).type & Format::Italic));
QVERIFY(layoutFormats.at(i).format.fontUnderline() == bool(formats.at(i).type & Format::Underline));
}