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

Unified Diff: third_party/WebKit/LayoutTests/images/color-profile-image-profile-match.html

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/color-profile-image-profile-match.html
diff --git a/third_party/WebKit/LayoutTests/images/color-profile-image-profile-match.html b/third_party/WebKit/LayoutTests/images/color-profile-image-profile-match.html
index 3176bd30dd5bf2e2970ee80526d2fcccaa2ba50e..f84af7488c49b4218fc8431f8328d1af364dc6a2 100644
--- a/third_party/WebKit/LayoutTests/images/color-profile-image-profile-match.html
+++ b/third_party/WebKit/LayoutTests/images/color-profile-image-profile-match.html
@@ -19,18 +19,7 @@ var images = 0;
function load() {
if (++images == 3 && window.testRunner)
- runAfterLayoutAndPaint(changeColorProfile);
-}
-
-function changeColorProfile() {
- /* The test images have an sRGB color profile and so should pass through
- * color correction unchanged if the output device profile is sRGB.
- */
- testRunner.setColorProfile('sRGB', done);
-}
-
-function done() {
- setTimeout(function() { testRunner.notifyDone() }, 0);
+ runAfterLayoutAndPaint(function() { testRunner.notifyDone() });
}
if (window.testRunner) {

Powered by Google App Engine
This is Rietveld 408576698