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: LayoutTests/fast/images/color-profile-layer-filter.html

Issue 266383003: [wip] Add fast/images color profile tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
« no previous file with comments | « LayoutTests/fast/images/color-profile-layer.html ('k') | LayoutTests/fast/images/color-profile-object.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/images/color-profile-layer-filter.html
diff --git a/LayoutTests/fast/images/color-profile-layer-filter.html b/LayoutTests/fast/images/color-profile-layer-filter.html
new file mode 100644
index 0000000000000000000000000000000000000000..c8d21a384b50dc97324bad833b4b1fca8ccabb3d
--- /dev/null
+++ b/LayoutTests/fast/images/color-profile-layer-filter.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<style>
+ .layer {
+ -webkit-transform: translateZ(0);
+ }
+ .filter {
+ -webkit-filter: blur(1px);
+ }
+</style>
+
+<body>
+ <!-- The blue sector of the images should be at 12 o'clock. -->
+ <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.jpg">
+ <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.png">
+ <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.jpg">
+ <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.jpg">
+ <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.png">
+ <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.jpg">
+</body>
+
+<script>
+var images = 0;
+
+function load(element) {
+ element.classList.add('layer');
+
+ setTimeout(function() { element.classList.add('filter') || next() }, 100);
+}
+
+function next() {
+ if (++images == 6 && window.testRunner)
+ setTimeout(function() { testRunner.setColorProfile('test', done) }, 100);
+}
+
+function done() {
+ setTimeout(function() { testRunner.notifyDone() }, 0);
+}
+
+if (window.testRunner) {
+ window.testRunner.dumpAsTextWithPixelResults();
+ window.testRunner.waitUntilDone();
+}
+</script>
+</html>
« no previous file with comments | « LayoutTests/fast/images/color-profile-layer.html ('k') | LayoutTests/fast/images/color-profile-object.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698