Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/WebKit/LayoutTests/images/resources/color-checker-munsell-chart.js

Issue 2938543003: Remove almost all Javascript calls to setColorProfile (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/images/resources/color-checker-munsell-chart.js
diff --git a/third_party/WebKit/LayoutTests/images/resources/color-checker-munsell-chart.js b/third_party/WebKit/LayoutTests/images/resources/color-checker-munsell-chart.js
index 2f494b316a5d03ca9371c20f55af00922a007951..384f04c186dbde7a48b29d5620bf295c3aaf447c 100644
--- a/third_party/WebKit/LayoutTests/images/resources/color-checker-munsell-chart.js
+++ b/third_party/WebKit/LayoutTests/images/resources/color-checker-munsell-chart.js
@@ -6,23 +6,12 @@ function testImageColors(source) {
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');

Powered by Google App Engine
This is Rietveld 408576698