Diff
Modified: trunk/LayoutTests/ChangeLog (272425 => 272426)
--- trunk/LayoutTests/ChangeLog 2021-02-05 18:44:54 UTC (rev 272425)
+++ trunk/LayoutTests/ChangeLog 2021-02-05 18:49:47 UTC (rev 272426)
@@ -1,5 +1,21 @@
2021-02-05 Youenn Fablet <[email protected]>
+ Remove GPUProcess flag in MediaRecorder tests
+ https://bugs.webkit.org/show_bug.cgi?id=221401
+
+ Reviewed by Eric Carlson.
+
+ Remove test that is the same as http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable.html.
+
+ * http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable-gpuprocess-expected.txt: Removed.
+ * http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable-gpuprocess.html: Removed.
+ * http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable.html:
+ * http/wpt/mediarecorder/pause-recording.html:
+ Increase timer to cope with added latency introduced by IPC messaging.
+ * platform/mac-wk2/TestExpectations:
+
+2021-02-05 Youenn Fablet <[email protected]>
+
Make sure click attribution is processed in case of redirected kept alive loads
https://bugs.webkit.org/show_bug.cgi?id=221453
<rdar://problem/70896640>
Modified: trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable-expected.txt (272425 => 272426)
--- trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable-expected.txt 2021-02-05 18:44:54 UTC (rev 272425)
+++ trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable-expected.txt 2021-02-05 18:49:47 UTC (rev 272426)
@@ -1,5 +1,4 @@
-
PASS MediaRecorder can successfully record the video for a audio-video stream
Deleted: trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable-gpuprocess-expected.txt (272425 => 272426)
--- trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable-gpuprocess-expected.txt 2021-02-05 18:44:54 UTC (rev 272425)
+++ trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable-gpuprocess-expected.txt 2021-02-05 18:49:47 UTC (rev 272426)
@@ -1,4 +0,0 @@
-
-
-PASS Verify MediaRecorder is working in GPUProcess
-
Deleted: trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable-gpuprocess.html (272425 => 272426)
--- trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable-gpuprocess.html 2021-02-05 18:44:54 UTC (rev 272425)
+++ trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable-gpuprocess.html 2021-02-05 18:49:47 UTC (rev 272426)
@@ -1,79 +0,0 @@
-<!doctype html>
-<html>
-<head>
- <title>MediaRecorder Dataavailable</title>
- <link rel="help" href=""
- <script src=""
- <script src=""
- <script src=""
- <link rel="stylesheet" href=""
-</head>
-<body>
-<div>
- <video id="player">
- </video>
-</div>
-<div>
- <canvas id="canvas" width="200" height="200">
- </canvas>
- <canvas id="frame" width="200" height="200">
- </canvas>
-</div>
-<script>
- var context;
- var drawStartTime;
-
- function createVideoStream() {
- const canvas = document.getElementById("canvas");
- context = canvas.getContext('2d');
- return canvas.captureStream();
- }
-
- function doRedImageDraw() {
- if (context) {
- context.fillStyle = "#ff0000";
- context.fillRect(0, 0, 200, 200);
- if (Date.now() - drawStartTime < 500) {
- window.requestAnimationFrame(doRedImageDraw);
- } else {
- drawStartTime = Date.now();
- doGreenImageDraw();
- }
- }
- }
-
- function doGreenImageDraw() {
- if (context) {
- context.fillStyle = "#00ff00";
- context.fillRect(0, 0, 200, 200);
- if (Date.now() - drawStartTime < 2000) {
- window.requestAnimationFrame(doGreenImageDraw);
- }
- }
- }
-
- async_test(t => {
- const video = createVideoStream();
- const recorder = new MediaRecorder(video);
- let mode = 0;
-
- recorder._ondataavailable_ = t.step_func(blobEvent => {
- assert_true(blobEvent instanceof BlobEvent, 'the type of event should be BlobEvent');
- assert_equals(blobEvent.type, 'dataavailable', 'the event type should be dataavailable');
- assert_true(blobEvent.isTrusted, 'isTrusted should be true when the event is created by C++');
- assert_true(blobEvent.data instanceof Blob, 'the type of data should be Blob');
- assert_true(blobEvent.data.size > 0, 'the blob should contain some buffers');
- t.done();
- });
- drawStartTime = Date.now();
- doRedImageDraw();
- recorder.start();
- assert_equals(recorder.state, 'recording', 'MediaRecorder has been started successfully');
- setTimeout(() => {
- recorder.stop();
- }, 2000);
- }, 'Verify MediaRecorder is working in GPUProcess');
-
-</script>
-</body>
-</html>
Modified: trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable.html (272425 => 272426)
--- trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable.html 2021-02-05 18:44:54 UTC (rev 272425)
+++ trunk/LayoutTests/http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable.html 2021-02-05 18:49:47 UTC (rev 272426)
@@ -1,4 +1,3 @@
-<!-- webkit-test-runner [ WebRTCPlatformCodecsInGPUProcessEnabled=false ] -->
<!doctype html>
<html>
<head>
@@ -7,6 +6,7 @@
<script src=""
<script src=""
<script src=""
+ <link rel="stylesheet" href=""
</head>
<body>
<div>
Modified: trunk/LayoutTests/http/wpt/mediarecorder/pause-recording.html (272425 => 272426)
--- trunk/LayoutTests/http/wpt/mediarecorder/pause-recording.html 2021-02-05 18:44:54 UTC (rev 272425)
+++ trunk/LayoutTests/http/wpt/mediarecorder/pause-recording.html 2021-02-05 18:49:47 UTC (rev 272426)
@@ -1,4 +1,3 @@
-<!-- webkit-test-runner [ WebRTCPlatformCodecsInGPUProcessEnabled=false ] -->
<!DOCTYPE html>
<html>
<head>
@@ -28,7 +27,7 @@
setTimeout(() => recorder.pause(), 50);
setTimeout(() => recorder.resume(), 950);
- await waitFor(1000);
+ await waitFor(2000);
recorder.stop();
const blob = await dataPromise;
@@ -36,7 +35,7 @@
video1.src = ""
await video1.play();
- assert_less_than(video1.duration, 0.5);
+ assert_less_than(video1.duration, 1.5);
URL.revokeObjectURL(url);
}, "Pausing and resuming the recording should impact the video duration");
Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (272425 => 272426)
--- trunk/LayoutTests/platform/mac-wk2/TestExpectations 2021-02-05 18:44:54 UTC (rev 272425)
+++ trunk/LayoutTests/platform/mac-wk2/TestExpectations 2021-02-05 18:49:47 UTC (rev 272426)
@@ -875,8 +875,6 @@
webkit.org/b/207149 [ Mojave ] imported/w3c/web-platform-tests/webrtc/RTCDtlsTransport-state.html [ Pass Failure ]
-webkit.org/b/207166 http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable-gpuprocess.html [ Pass Failure ]
-
webkit.org/b/207199 webgpu/whlsl/loops.html [ Pass ImageOnlyFailure ]
webkit.org/b/207200 webgpu/whlsl/while-loop-continue.html [ Pass ImageOnlyFailure ]