Title: [290763] trunk/LayoutTests
- Revision
- 290763
- Author
- [email protected]
- Date
- 2022-03-02 18:44:03 -0800 (Wed, 02 Mar 2022)
Log Message
Unreviewed, reverting r290658.
r290658 broke two tests for iOS, slowing down EWS.
Reverted changeset:
"fast/mediastream/getUserMedia-to-canvas-1.html and
fast/mediastream/getUserMedia-to-canvas-2.html are failing on
MacOS when remote video frame flag is enabled"
https://bugs.webkit.org/show_bug.cgi?id=237042
https://commits.webkit.org/r290658
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (290762 => 290763)
--- trunk/LayoutTests/ChangeLog 2022-03-03 01:03:52 UTC (rev 290762)
+++ trunk/LayoutTests/ChangeLog 2022-03-03 02:44:03 UTC (rev 290763)
@@ -1,3 +1,17 @@
+2022-03-02 Robert Jenner <[email protected]>
+
+ Unreviewed, reverting r290658.
+
+ r290658 broke two tests for iOS, slowing down EWS.
+
+ Reverted changeset:
+
+ "fast/mediastream/getUserMedia-to-canvas-1.html and
+ fast/mediastream/getUserMedia-to-canvas-2.html are failing on
+ MacOS when remote video frame flag is enabled"
+ https://bugs.webkit.org/show_bug.cgi?id=237042
+ https://commits.webkit.org/r290658
+
2022-03-02 Simon Fraser <[email protected]>
Rendering issues with many dynamically-added sticky elements inside overflow scroll
Modified: trunk/LayoutTests/fast/mediastream/getUserMedia-to-canvas-1.html (290762 => 290763)
--- trunk/LayoutTests/fast/mediastream/getUserMedia-to-canvas-1.html 2022-03-03 01:03:52 UTC (rev 290762)
+++ trunk/LayoutTests/fast/mediastream/getUserMedia-to-canvas-1.html 2022-03-03 02:44:03 UTC (rev 290763)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ WebRTCRemoteVideoFrameEnabled=false ] -->
<html>
<head>
<meta name="timeout" content="long">
Modified: trunk/LayoutTests/fast/mediastream/getUserMedia-to-canvas-2.html (290762 => 290763)
--- trunk/LayoutTests/fast/mediastream/getUserMedia-to-canvas-2.html 2022-03-03 01:03:52 UTC (rev 290762)
+++ trunk/LayoutTests/fast/mediastream/getUserMedia-to-canvas-2.html 2022-03-03 02:44:03 UTC (rev 290763)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ WebRTCRemoteVideoFrameEnabled=false ] -->
<html>
<head>
<meta name="timeout" content="long">
Modified: trunk/LayoutTests/fast/mediastream/resources/getUserMedia-to-canvas.js (290762 => 290763)
--- trunk/LayoutTests/fast/mediastream/resources/getUserMedia-to-canvas.js 2022-03-03 01:03:52 UTC (rev 290762)
+++ trunk/LayoutTests/fast/mediastream/resources/getUserMedia-to-canvas.js 2022-03-03 02:44:03 UTC (rev 290763)
@@ -10,7 +10,7 @@
const video = document.createElement("video");
video.srcObject = await navigator.mediaDevices.getUserMedia({ video: { width: { exact: width } } });
await video.play();
- assert_true(video.videoWidth === width || video.videoHeight === width);
+ assert_equals(video.videoWidth, width);
return video;
}
@@ -127,16 +127,30 @@
async function testUserMediaToCanvas(t, subcase) {
const desc = testDescription(subcase);
- const [angle] = setMockCameraImageOrientation(subcase.angle);
const video = await createSourceVideo();
const debuge = document.getElementById("debuge");
debuge.append(video);
- const videoSize = [video.videoWidth, video.videoHeight];
+ const realVideoSize = [video.videoWidth, video.videoHeight];
t.add_cleanup(async () => {
+ // Reset orientation for the next test by going to 0.
+ if (subcase.angle == 180) {
+ // 180 -> 0 cannot detect rotation via video size change. Go via 90.
+ const [angle, videoSize] = setMockCameraImageOrientation(90, realVideoSize);
+ await waitForVideoSize(video, videoSize[0], videoSize[1]);
+ }
setMockCameraImageOrientation(0);
+ await waitForVideoSize(video, realVideoSize[0], realVideoSize[1]);
debuge.removeChild(video);
});
+ if (subcase.angle == 180) {
+ // 0 -> 180 cannot detect rotation via video size change. Go via 90.
+ const [angle, videoSize] = setMockCameraImageOrientation(90, realVideoSize);
+ await waitForVideoSize(video, videoSize[0], videoSize[1]);
+ }
+ const [angle, videoSize] = setMockCameraImageOrientation(subcase.angle, realVideoSize);
+ await waitForVideoSize(video, videoSize[0], videoSize[1]);
+
const canvas = createVerifyCanvas(video);
debuge.appendChild(canvas);
t.add_cleanup(async () => debuge.removeChild(canvas));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes