Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 50470e97 authored by Martin Flöser's avatar Martin Flöser

[autotests] Drop cast to SceneOpenGL GenericSceneOpenGLTest

Not really needed, instead we can compare on the compositing type.
parent 01ddbe7d
......@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "effectloader.h"
#include "cursor.h"
#include "platform.h"
#include "scene_opengl.h"
#include "scene.h"
#include "shell_client.h"
#include "wayland_server.h"
#include "effect_builtins.h"
......@@ -105,8 +105,9 @@ void GenericSceneOpenGLTest::testRestart()
QVERIFY(sceneCreatedSpy.wait());
}
QCOMPARE(sceneCreatedSpy.count(), 1);
auto scene = qobject_cast<SceneOpenGL*>(KWin::Compositor::self()->scene());
auto scene = KWin::Compositor::self()->scene();
QVERIFY(scene);
QCOMPARE(scene->compositingType(), KWin::OpenGL2Compositing);
// trigger a repaint
KWin::Compositor::self()->addRepaintFull();
......
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