Changeset 271181 in webkit
- Timestamp:
- Jan 5, 2021, 4:33:17 PM (6 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
media/media-source/media-source-webm-expected.txt (modified) (1 diff)
-
media/media-source/media-source-webm.html (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r271178 r271181 1 2021-01-05 Peng Liu <peng.liu6@apple.com> 2 3 media-source-webm.html: Handle frame size in HAVE_METADATA 4 https://bugs.webkit.org/show_bug.cgi?id=220046 5 6 Reviewed by Daniel Bates. 7 8 A follow-up patch to fix a failure on Big Sur. A 'resize' event can be fired before or 9 after the 'update' event. The test needs to support both cases. 10 11 * media/media-source/media-source-webm-expected.txt: 12 * media/media-source/media-source-webm.html: 13 1 14 2021-01-05 Peng Liu <peng.liu6@apple.com> 2 15 -
trunk/LayoutTests/media/media-source/media-source-webm-expected.txt
r271020 r271181 6 6 RUN(sourceBuffer = source.addSourceBuffer(loader.type())) 7 7 RUN(sourceBuffer.appendBuffer(loader.initSegment())) 8 EVENT(resize)9 EXPECTED (video.videoWidth == '320') OK10 EXPECTED (video.videoHeight == '240') OK11 8 EVENT(update) 12 9 Append a media segment. 13 10 RUN(sourceBuffer.appendBuffer(loader.mediaSegment(0))) 11 EXPECTED (resizeEventFired == 'true') OK 12 EXPECTED (videoWidth == '320') OK 13 EXPECTED (videoHeight == '240') OK 14 14 END OF TEST 15 15 -
trunk/LayoutTests/media/media-source/media-source-webm.html
r271020 r271181 9 9 var source; 10 10 var sourceBuffer; 11 var resizeEventFired = false; 12 var videoWidth = 0; 13 var videoHeight = 0; 11 14 12 15 function loaderPromise(loader) { … … 23 26 if (video.videoWidth == 0 && video.videoHeight == 0) 24 27 return; 25 consoleWrite(`EVENT(${event.type})`);26 testExpected('video.videoWidth', width);27 testExpected('video.videoHeight', height);28 resizeEventFired = true; 29 videoWidth = video.videoWidth; 30 videoHeight = video.videoHeight; 28 31 resolve(); 29 32 }); … … 44 47 run('source.duration = loader.duration()'); 45 48 run('sourceBuffer = source.addSourceBuffer(loader.type())'); 46 const resized = resizePromise(video , 320, 240);49 const resized = resizePromise(video); 47 50 run('sourceBuffer.appendBuffer(loader.initSegment())'); 48 51 … … 53 56 54 57 await resized; 58 testExpected('resizeEventFired', true); 59 testExpected('videoWidth', 320); 60 testExpected('videoHeight', 240); 55 61 endTest(); 56 62 } catch (e) {
Note:
See TracChangeset
for help on using the changeset viewer.