[autotests] Drop cast to SceneOpenGL GenericSceneOpenGLTest
Not really needed, instead we can compare on the compositing type.
This commit is contained in:
parent
01ddbe7d75
commit
50470e97c6
1 changed files with 3 additions and 2 deletions
|
@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#include "effectloader.h"
|
#include "effectloader.h"
|
||||||
#include "cursor.h"
|
#include "cursor.h"
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
#include "scene_opengl.h"
|
#include "scene.h"
|
||||||
#include "shell_client.h"
|
#include "shell_client.h"
|
||||||
#include "wayland_server.h"
|
#include "wayland_server.h"
|
||||||
#include "effect_builtins.h"
|
#include "effect_builtins.h"
|
||||||
|
@ -105,8 +105,9 @@ void GenericSceneOpenGLTest::testRestart()
|
||||||
QVERIFY(sceneCreatedSpy.wait());
|
QVERIFY(sceneCreatedSpy.wait());
|
||||||
}
|
}
|
||||||
QCOMPARE(sceneCreatedSpy.count(), 1);
|
QCOMPARE(sceneCreatedSpy.count(), 1);
|
||||||
auto scene = qobject_cast<SceneOpenGL*>(KWin::Compositor::self()->scene());
|
auto scene = KWin::Compositor::self()->scene();
|
||||||
QVERIFY(scene);
|
QVERIFY(scene);
|
||||||
|
QCOMPARE(scene->compositingType(), KWin::OpenGL2Compositing);
|
||||||
|
|
||||||
// trigger a repaint
|
// trigger a repaint
|
||||||
KWin::Compositor::self()->addRepaintFull();
|
KWin::Compositor::self()->addRepaintFull();
|
||||||
|
|
Loading…
Reference in a new issue