Bug 226864 - [GStreamer] media/track/audio/audio-track-mkv-vorbis-language.html and media/track/video/video-track-mkv-theora-language.html are failing
Summary: [GStreamer] media/track/audio/audio-track-mkv-vorbis-language.html and media/...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Diego Pino
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-09 19:35 PDT by Diego Pino
Modified: 2021-06-14 22:28 PDT (History)
9 users (show)

See Also:


Attachments
Patch (5.96 KB, patch)
2021-06-09 19:44 PDT, Diego Pino
no flags Details | Formatted Diff | Diff
Patch (6.17 KB, patch)
2021-06-10 15:59 PDT, Diego Pino
no flags Details | Formatted Diff | Diff
Patch (6.09 KB, patch)
2021-06-14 16:27 PDT, Diego Pino
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Pino 2021-06-09 19:35:30 PDT
These tests are failing with the following output:

https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/r278650%20%282224%29/media/track/audio/audio-track-mkv-vorbis-language-diff.txt

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/media/track/audio/audio-track-mkv-vorbis-language-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/media/track/audio/audio-track-mkv-vorbis-language-actual.txt
@@ -5,8 +5,8 @@
 
 ** Check in-band kind attributes
 EXPECTED (video.audioTracks.length == '2') OK
-EXPECTED (video.audioTracks[0].language == 'la') OK
-EXPECTED (video.audioTracks[1].language == 'en') OK
+EXPECTED (video.audioTracks[0].language == 'la'), OBSERVED 'en' FAIL
+EXPECTED (video.audioTracks[1].language == 'en'), OBSERVED 'la' FAIL
 
 END OF TEST


https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/r278651%20%282225%29/media/track/video/video-track-mkv-theora-language-diff.txt


--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/media/track/video/video-track-mkv-theora-language-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/media/track/video/video-track-mkv-theora-language-actual.txt
@@ -5,8 +5,8 @@
 
 ** Check in-band kind attributes
 EXPECTED (video.videoTracks.length == '2') OK
-EXPECTED (video.videoTracks[0].language == 'ru') OK
-EXPECTED (video.videoTracks[1].language == 'zh') OK
+EXPECTED (video.videoTracks[0].language == 'ru'), OBSERVED 'zh' FAIL
+EXPECTED (video.videoTracks[1].language == 'zh'), OBSERVED 'ru' FAIL
 
 END OF TEST
Comment 1 Diego Pino 2021-06-09 19:44:32 PDT
Created attachment 431044 [details]
Patch
Comment 2 Eric Carlson 2021-06-10 08:23:53 PDT
Comment on attachment 431044 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=431044&action=review

> LayoutTests/ChangeLog:23
> +        * platform/gtk/media/track/audio/audio-track-mkv-vorbis-language-expected.txt: Added.
> +        * platform/gtk/media/track/video/video-track-mkv-theora-language-expected.txt: Added.

It looks like you have fixed the tests globally, why not replace all existing expectations instead of adding new GTK-specific results?
Comment 3 Diego Pino 2021-06-10 15:43:34 PDT
(In reply to Eric Carlson from comment #2)
> Comment on attachment 431044 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=431044&action=review
> 
> > LayoutTests/ChangeLog:23
> > +        * platform/gtk/media/track/audio/audio-track-mkv-vorbis-language-expected.txt: Added.
> > +        * platform/gtk/media/track/video/video-track-mkv-theora-language-expected.txt: Added.
> 
> It looks like you have fixed the tests globally, why not replace all
> existing expectations instead of adding new GTK-specific results?

Agree. I will push a new patch.
Comment 4 Diego Pino 2021-06-10 15:59:28 PDT
Created attachment 431152 [details]
Patch
Comment 5 Eric Carlson 2021-06-11 09:26:16 PDT
Comment on attachment 431152 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=431152&action=review

> LayoutTests/media/in-band-tracks.js:58
> +            testExpected("video." + type +"Tracks.length", values.length);
> +            for (var i = 0; i < values.length; ++i)
> +                testExpected("video." + type +"Tracks[" + i + "]." + attribute, values[i]);
> +        } else {
> +            testExpected("video." + type +"Tracks.length", Object.keys(values).length);
> +            for (let id in values) {
> +                testExpected(`video.${type}Tracks.getTrackById('${id}').${attribute}`, values[id]);

Nit: it is a bit odd to use both template literals and string concatenation in this function.
Comment 6 Diego Pino 2021-06-14 16:27:08 PDT
Created attachment 431382 [details]
Patch
Comment 7 EWS 2021-06-14 22:27:05 PDT
Committed r278860 (238804@main): <https://commits.webkit.org/238804@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 431382 [details].
Comment 8 Radar WebKit Bug Importer 2021-06-14 22:28:15 PDT
<rdar://problem/79324756>