[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [plasma-framework] autotests: adjust test values
From: Marco Martin <notmart () gmail ! com>
Date: 2015-11-10 10:01:55
Message-ID: E1Zw5kR-0002J8-TT () scm ! kde ! org
[Download RAW message or body]
Git commit d6dd74ce398e21f3d2717a4be87040de01ae79ab by Marco Martin.
Committed on 10/11/2015 at 10:01.
Pushed by mart into branch 'master'.
adjust test values
framesvg margins have been changed, influencing sizes
and pos of the dialog
Change-Id: I23b6a8416de8ec7c17b04b97a6c2772bd44b4d7b
M +7 -7 autotests/dialognativetest.cpp
http://commits.kde.org/plasma-framework/d6dd74ce398e21f3d2717a4be87040de01ae79ab
diff --git a/autotests/dialognativetest.cpp b/autotests/dialognativetest.cpp
index 7ddc228..9c9646c 100644
--- a/autotests/dialognativetest.cpp
+++ b/autotests/dialognativetest.cpp
@@ -65,13 +65,13 @@ void DialogNativeTest::size()
QCOMPARE(m_content->width(), (qreal)100);
QCOMPARE(m_content->height(), (qreal)100);
- QCOMPARE(m_dialog->width(), 108);
- QCOMPARE(m_dialog->height(), 108);
+ QCOMPARE(m_dialog->width(), 112);
+ QCOMPARE(m_dialog->height(), 112);
- QCOMPARE(m_dialog->margins()->property("left").value<qreal>(), (qreal)4.0);
- QCOMPARE(m_dialog->margins()->property("top").value<qreal>(), (qreal)4.0);
- QCOMPARE(m_dialog->margins()->property("right").value<qreal>(), (qreal)4.0);
- QCOMPARE(m_dialog->margins()->property("bottom").value<qreal>(), (qreal)4.0);
+ QCOMPARE(m_dialog->margins()->property("left").value<qreal>(), (qreal)6.0);
+ QCOMPARE(m_dialog->margins()->property("top").value<qreal>(), (qreal)6.0);
+ QCOMPARE(m_dialog->margins()->property("right").value<qreal>(), (qreal)6.0);
+ QCOMPARE(m_dialog->margins()->property("bottom").value<qreal>(), (qreal)6.0);
}
void DialogNativeTest::position()
@@ -83,7 +83,7 @@ void DialogNativeTest::position()
#if QT_VERSION >= QT_VERSION_CHECK(5, 3, 0)
m_dialog->setVisualParent(m_panel2->contentItem());
- QCOMPARE(m_dialog->x(), 71);
+ QCOMPARE(m_dialog->x(), 69);
QCOMPARE(m_dialog->y(), 49);
#endif
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic