Index: third_party/WebKit/LayoutTests/fast/images/color-profile-layer-filter.html |
diff --git a/third_party/WebKit/LayoutTests/fast/images/color-profile-layer-filter.html b/third_party/WebKit/LayoutTests/fast/images/color-profile-layer-filter.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b8f643cb751fdf91b6c3dd8ecb272d846327ec7b |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/images/color-profile-layer-filter.html |
@@ -0,0 +1,44 @@ |
+<!DOCTYPE html> |
+<html> |
+<style> |
+ img { |
+ transform: translateZ(0); |
+ width: 250px; |
+ } |
+ .filter { |
+ -webkit-filter: blur(3px); |
+ } |
+</style> |
+ |
+<body> |
+ <!-- The blue sector of the images should be at 12 o'clock. --> |
+ <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/webp-color-profile-lossy.webp"> |
+</body> |
+ |
+<script> |
+var images = 0; |
+ |
+function load(element) { |
+ setTimeout(function() { element.classList.add('filter') || next() }, 100); |
+} |
+ |
+function next() { |
+ if (++images == 3 && window.testRunner) |
+ setTimeout(function() { testRunner.setColorProfile('whacked', profileChanged) }, 100); |
+} |
+ |
+function profileChanged() { |
+ setTimeout(function() { testRunner.notifyDone() }, 0); |
+} |
+ |
+if (window.internals) |
+ internals.settings.setImageColorProfilesEnabled(true); |
+ |
+if (window.testRunner) { |
+ window.testRunner.dumpAsTextWithPixelResults(); |
+ window.testRunner.waitUntilDone(); |
+} |
+</script> |
+</html> |