| Index: content/test/data/media/webrtc_test_utilities.js
|
| diff --git a/content/test/data/media/webrtc_test_utilities.js b/content/test/data/media/webrtc_test_utilities.js
|
| index f8b320966d91b92db5d33193af3c2cf2d76cea23..e47770b8481322e574ceea3233ed095df4c0f9c0 100644
|
| --- a/content/test/data/media/webrtc_test_utilities.js
|
| +++ b/content/test/data/media/webrtc_test_utilities.js
|
| @@ -210,6 +210,13 @@ function isVideoBlack(pixels) {
|
| return true;
|
| }
|
|
|
| +// Checks if the given color is within 1 value away from COLOR_BACKGROUND_GREEN.
|
| +function isAlmostBackgroundGreen(color) {
|
| + if (Math.abs(color - COLOR_BACKGROUND_GREEN) > 1)
|
| + return false;
|
| + return true;
|
| +}
|
| +
|
| // Use Luma as in Rec. 709: Y′709 = 0.2126R + 0.7152G + 0.0722B;
|
| // See http://en.wikipedia.org/wiki/Rec._709.
|
| function rec702Luma_(r, g, b) {
|
| @@ -246,4 +253,4 @@ function hasVideoInputDeviceOnSystem() {
|
| else
|
| sendValueToTest('no-video-input-devices');
|
| });
|
| -}
|
| +}
|
|
|