Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GStreamer] test fast/mediastream/getDisplayMedia-size.html fails
https://bugs.webkit.org/show_bug.cgi?id=233731 Reviewed by Xabier Rodriguez-Calvar. The main fix here is to wrap the MockDisplayCaptureSourceGStreamer in a RealtimeVideoSource, same logic as the MockRealtimeVideoSourceGStreamer. This patch also fixes fast/mediastream/getDisplayMedia-displaySurface.html by adjusting the source settings displaySurface, depending on which surface we're behaving as. The non-mock GStreamer DisplayCapture source will need to set this setting too, but that's going to be addressed in a follow-up patch. * LayoutTests/platform/glib/TestExpectations: * Source/WebCore/platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.cpp: (WebCore::MockDisplayCaptureSourceGStreamer::create): (WebCore::MockDisplayCaptureSourceGStreamer::MockDisplayCaptureSourceGStreamer): (WebCore::MockDisplayCaptureSourceGStreamer::settings): * Source/WebCore/platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.h: * Source/WebCore/platform/mock/MockRealtimeMediaSourceCenter.cpp: * Source/WebCore/platform/mock/MockRealtimeVideoSource.h: Canonical link: https://commits.webkit.org/262825@main
- Loading branch information
Showing
6 changed files
with
25 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
LayoutTests/platform/glib/fast/mediastream/getDisplayMedia-size-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
|
||
PASS Ensure getDisplayMedia size can be reduced with applyConstraints | ||
PASS Ensure getDisplayMedia size can be increased with applyConstraints | ||
PASS original source should stay at a small size | ||
PASS original source should stay at a big size | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters