[wayland] Fix surface unit test
Behaviour was fixed in c3f5f8ce01
. If an
item starts at 0,0 and is 100 pixels wide in normal geometry the 100th
pixel is not inside the rectangle.
SubSurface::testSurfaceAt was adjusted correctly but this was missed as
we test the same thing twice!
This commit is contained in:
parent
9419acc1ff
commit
52900dc2d6
1 changed files with 2 additions and 2 deletions
|
@ -874,9 +874,9 @@ void TestWaylandSurface::testSurfaceAt()
|
||||||
// now the surface is mapped and surfaceAt should give the surface
|
// now the surface is mapped and surfaceAt should give the surface
|
||||||
QVERIFY(serverSurface->isMapped());
|
QVERIFY(serverSurface->isMapped());
|
||||||
QCOMPARE(serverSurface->surfaceAt(QPointF(0, 0)), serverSurface);
|
QCOMPARE(serverSurface->surfaceAt(QPointF(0, 0)), serverSurface);
|
||||||
QCOMPARE(serverSurface->surfaceAt(QPointF(100, 100)), serverSurface);
|
QCOMPARE(serverSurface->surfaceAt(QPointF(99, 99)), serverSurface);
|
||||||
// outside the geometry it should not give a surface
|
// outside the geometry it should not give a surface
|
||||||
QVERIFY(!serverSurface->surfaceAt(QPointF(101, 101)));
|
QVERIFY(!serverSurface->surfaceAt(QPointF(100, 100)));
|
||||||
QVERIFY(!serverSurface->surfaceAt(QPointF(-1, -1)));
|
QVERIFY(!serverSurface->surfaceAt(QPointF(-1, -1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue