| Index: third_party/WebKit/LayoutTests/media/resources/munsell-video-chart.js
|
| diff --git a/third_party/WebKit/LayoutTests/media/resources/munsell-video-chart.js b/third_party/WebKit/LayoutTests/media/resources/munsell-video-chart.js
|
| index 61c0dd2a4018c00a58e5f28780809c2a263c1861..ac9dfdd6236701039f454ed3e8e43c3a4430cedc 100644
|
| --- a/third_party/WebKit/LayoutTests/media/resources/munsell-video-chart.js
|
| +++ b/third_party/WebKit/LayoutTests/media/resources/munsell-video-chart.js
|
| @@ -5,23 +5,12 @@ function testImageColors(source, cyanInTargetGamut) {
|
|
|
| var image = document.querySelector('img');
|
| image.onload = function() {
|
| - runAfterLayoutAndPaint(window.testRunner ? changeColorProfile : profileChanged);
|
| + runAfterLayoutAndPaint(function () { setTimeout(drawImageToCanvas, 0) });
|
| };
|
|
|
| image.src = source;
|
| }
|
|
|
| -function changeColorProfile() {
|
| - /* The test image contains the Munsell colors in a known color space. Convert
|
| - * the colors to sRGB color space and test the transformed color accuracy.
|
| - */
|
| - window.testRunner.setColorProfile('sRGB', profileChanged);
|
| -}
|
| -
|
| -function profileChanged() {
|
| - setTimeout(drawImageToCanvas, 0);
|
| -}
|
| -
|
| function drawImageToCanvas() {
|
| var image = document.querySelector('img');
|
|
|
|
|