Review fixes in progress, unverified: stopped by the user before the tests ran
This commit is contained in:
1 parent
81894f744a
commit
70318de2e8
14 files changed
+232
-101
No files matched your search
@@ -345,6 +345,12 @@ void BrushControlsTests::blurHasItsOwnRadius()
|
||||
QTest::keyClick(&field, Qt::Key_Return);
|
||||
QCOMPARE(session.brushSettings().blurRadius, 0.5);
|
||||
QCOMPARE(field.text(), QString("0.5"));
|
||||
// A number that is not finite takes 5, as Swift's binding.
|
||||
type(field, "inf");
|
||||
QTest::keyClick(&field, Qt::Key_Return);
|
||||
QCOMPARE(session.brushSettings().blurRadius, 5.0);
|
||||
type(field, "0");
|
||||
QTest::keyClick(&field, Qt::Key_Return);
|
||||
type(field, "abc");
|
||||
QTest::keyClick(&field, Qt::Key_Return);
|
||||
QCOMPARE(session.brushSettings().blurRadius, 0.5);
|
||||
|
||||
Reference in new issue
Block a user