Index: third_party/WebKit/LayoutTests/fast/images/color-profile-layer.html |
diff --git a/third_party/WebKit/LayoutTests/fast/images/color-profile-layer.html b/third_party/WebKit/LayoutTests/fast/images/color-profile-layer.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2d4d4a38581e050a8280e8e00b30b1e2ff909c0c |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/images/color-profile-layer.html |
@@ -0,0 +1,42 @@ |
+<!DOCTYPE html> |
+<html> |
+<style> |
+ .layer { |
+ transform: translateZ(0); |
+ width: 250px; |
+ } |
+</style> |
+ |
+<body> |
+ <!-- The blue sector of the images should be at 12 o'clock. --> |
+ <img onload="load(this)" src="resources/webp-color-profile-lossy.webp"> |
+ <img onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.png"> |
+ <img onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.jpg"> |
+ <img onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.png"> |
+ <img onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.jpg"> |
+ <img onload="load(this)" src="resources/webp-color-profile-lossy.webp"> |
+</body> |
+ |
+<script> |
+var images = 0; |
+ |
+function load(element) { |
+ element.classList.add('layer'); |
+ |
+ if (++images == 6 && window.testRunner) |
+ setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100); |
+} |
+ |
+function done() { |
+ setTimeout(function() { testRunner.notifyDone() }, 0); |
+} |
+ |
+if (window.internals) |
+ internals.settings.setImageColorProfilesEnabled(true); |
+ |
+if (window.testRunner) { |
+ testRunner.dumpAsTextWithPixelResults(); |
+ testRunner.waitUntilDone(); |
+} |
+</script> |
+</html> |