Exercise native preview clicks and publisher controls escape
This commit is contained in:
1 parent
64064c2cbf
commit
2781208361
2 files changed
+11
-1
No files matched your search
@@ -13,6 +13,7 @@
|
||||
#include <QSlider>
|
||||
#include <QPainter>
|
||||
#include <QWheelEvent>
|
||||
#include <QWindow>
|
||||
#ifdef HAVE_STREAM_CAPTURE
|
||||
#include <QVideoWidget>
|
||||
#include <QVideoSink>
|
||||
@@ -513,6 +514,10 @@ private slots:
|
||||
QSignalSpy manage(&grid, &StreamGridWindow::publishRequested);
|
||||
QTest::mouseClick(preview, Qt::LeftButton); QTRY_COMPARE(manage.count(), 1);
|
||||
QCOMPARE(manage.at(0).at(0).toULongLong(), group); QCOMPARE(grid.focusedSource(), uint64_t(0));
|
||||
auto nativeWindows = preview->findChildren<QWindow*>();
|
||||
DEBUG_INFO(DEBUG_CATEGORY_STREAM, "fixture local preview native_windows=%lld", (long long)nativeWindows.size());
|
||||
QVERIFY(!nativeWindows.isEmpty());
|
||||
QTest::mouseClick(nativeWindows.first(), Qt::LeftButton); QTRY_COMPARE(manage.count(), 2);
|
||||
snapshot(true);
|
||||
QPointer<StreamPlayerWindow> remote = grid.findChild<StreamPlayerWindow*>();
|
||||
QVERIFY(remote); auto* video = remote->findChild<VideoRenderWidget*>(); QVERIFY(video);
|
||||
|
||||
Reference in new issue
Block a user