Make webrtc replace track tests less flaky
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Sep 2017 18:10:56 +0000 (18:10 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Sep 2017 18:10:56 +0000 (18:10 +0000)
commit8e199cee4ff789f921c5aef9ec19420ae5f1412f
tree87a842b8438a13385e558e7c35dea17527afce1c
parent9496a2598d1c78ca41e29a4c61579fe3cd9d39cd
Make webrtc replace track tests less flaky
https://bugs.webkit.org/show_bug.cgi?id=172645
<rdar://problem/34118218>

Patch by Youenn Fablet <youenn@apple.com> on 2017-09-20
Reviewed by Eric Carlson.

Improving stability of tests by retrying tests every 50 ms instead of once.
Doing some refactoring to put more helper routines in routine.js
Relaxing black pixel check as compression may introduce some uncertainty.
It is now considered black if RGB < (30, 30, 30).

* TestExpectations: Marking video-mute.html as Pass/Fail instead of Fail.
* webrtc/routines.js:
* webrtc/video-mute.html:
* webrtc/video-replace-muted-track.html:
* webrtc/video-replace-track-expected.txt:
* webrtc/video-replace-track-to-null.html:
* webrtc/video-replace-track.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/webrtc/routines.js
LayoutTests/webrtc/video-mute.html
LayoutTests/webrtc/video-replace-muted-track.html
LayoutTests/webrtc/video-replace-track-expected.txt
LayoutTests/webrtc/video-replace-track-to-null.html
LayoutTests/webrtc/video-replace-track.html