| Index: third_party/WebKit/LayoutTests/fast/images/color-profile-image-scroll-into-view.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/images/color-profile-image-scroll-into-view.html b/third_party/WebKit/LayoutTests/fast/images/color-profile-image-scroll-into-view.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5fbd68253fe2b46bdedbb9d8671285a8abe50120
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/images/color-profile-image-scroll-into-view.html
|
| @@ -0,0 +1,50 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<script src="../../resources/run-after-layout-and-paint.js"/></script>
|
| +
|
| +<style>
|
| + div { height: 55px; overflow: hidden; }
|
| + img { width: 250px; }
|
| +</style>
|
| +
|
| +<body>
|
| + <!-- The blue sector of the images should be at 12 o'clock. -->
|
| + <div>
|
| + <img src="resources/red-at-12-oclock-with-color-profile.jpg">
|
| + <img src="resources/red-at-12-oclock-with-color-profile.jpg">
|
| + <img src="resources/red-at-12-oclock-with-color-profile.jpg">
|
| + </div>
|
| + <div id="test" style="position: relative; top: 1200px; margin-bottom: 300px">
|
| + <img src="resources/webp-color-profile-lossy.webp">
|
| + <img src="resources/red-at-12-oclock-with-color-profile.jpg">
|
| + <img src="resources/red-at-12-oclock-with-color-profile.png">
|
| + <div>
|
| +</body>
|
| +
|
| +<script>
|
| +window.onload = function() {
|
| + runAfterLayoutAndPaint(window.testRunner ? changeColorProfile : scroll);
|
| +};
|
| +
|
| +function changeColorProfile() {
|
| + setTimeout(function() { testRunner.setColorProfile('whacked', scroll) }, 100);
|
| +}
|
| +
|
| +function scroll() {
|
| + window.addEventListener("scroll", function() {
|
| + if (window.testRunner)
|
| + setTimeout(function() { testRunner.notifyDone() }, 0);
|
| + });
|
| +
|
| + test.scrollIntoView();
|
| +}
|
| +
|
| +if (window.internals)
|
| + internals.settings.setImageColorProfilesEnabled(true);
|
| +
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsTextWithPixelResults();
|
| + testRunner.waitUntilDone();
|
| +}
|
| +</script>
|
| +</html>
|
|
|