Bug 229057

Summary: [GTK][WPE] Tests media/event-attributes.html and media/video-background-tab-playback.html are flaky after r279499
Product: WebKit Reporter: Carlos Alberto Lopez Perez <clopez>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, calvaris
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=83704

Description Carlos Alberto Lopez Perez 2021-08-12 15:52:46 PDT
This two tests are flaky after r279499 on GTK and WPE

  media/event-attributes.html [ Pass Failure ]
  media/video-background-tab-playback.html [ Pass Failure ]


The failure they give when they fail (they fail most of the time) is:


--- /home/buildbot/worker/wpe-linux-64-release-tests/build/layout-test-results/media/event-attributes-expected.txt
+++ /home/buildbot/worker/wpe-linux-64-release-tests/build/layout-test-results/media/event-attributes-actual.txt
@@ -25,13 +25,13 @@
 
 *** seeking
 RUN(video.currentTime = 5.6)
+EVENT(play)
+EVENT(playing)
 EVENT(seeking)
 EVENT(seeked)
 
 *** beginning playback
 RUN(video.play())
-EVENT(play)
-EVENT(playing)
 EVENT(pause)
 EVENT(ended)
 


--- /home/buildbot/worker/wpe-linux-64-release-tests/build/layout-test-results/media/video-background-tab-playback-expected.txt
+++ /home/buildbot/worker/wpe-linux-64-release-tests/build/layout-test-results/media/video-background-tab-playback-actual.txt
@@ -11,12 +11,6 @@
 ** Simulate switching the tab to background, video should pause.
 RUN(testRunner.setPageVisibility('hidden'))
 
-EXPECTED (video.paused == 'true') OK
-
-** Simulate switch back to foreground, video should remain paused.
-RUN(internals.applicationWillEnterForeground())
-
-EXPECTED (video.paused == 'true') OK
-
+Video did not pause after switching to backgound. FAIL
 END OF TEST
Comment 1 Carlos Alberto Lopez Perez 2021-08-12 18:29:11 PDT
Expectations updated on r281002