Commit 1db415a2 authored by Thomas Zander's avatar Thomas Zander

Add little test

svn path=/trunk/koffice/; revision=604245
parent 0631d6eb
......@@ -67,6 +67,16 @@ void TestShapeAt::test() {
QCOMPARE(manager.shapeAt(QPointF(125, 105), KoFlake::Selected), &shape2);
QCOMPARE(manager.shapeAt(QPointF(125, 105), KoFlake::Unselected), &shape3);
QCOMPARE(manager.shapeAt(QPointF(125, 105), KoFlake::NextUnselected), &shape1);
// test omitHiddenShapes
QCOMPARE(manager.shapeAt(QPointF(125, 105), KoFlake::Selected, true), &shape2);
QCOMPARE(manager.shapeAt(QPointF(125, 105), KoFlake::Unselected, true), &shape3);
QCOMPARE(manager.shapeAt(QPointF(125, 105), KoFlake::NextUnselected, true), &shape1);
shape3.setVisible(false);
QCOMPARE(manager.shapeAt(QPointF(125, 105), KoFlake::Selected, true), &shape2);
QCOMPARE(manager.shapeAt(QPointF(125, 105), KoFlake::Unselected, true), &shape1);
QCOMPARE(manager.shapeAt(QPointF(125, 105), KoFlake::NextUnselected, true), &shape1);
}
QTEST_MAIN(TestShapeAt)
......
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