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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/color-profile-mask-image-svg.html

Issue 2217463003: Color profile layout test cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <script src="../../resources/run-after-layout-and-paint.js"></script> 3 <script src="../../resources/run-after-layout-and-paint.js"></script>
4 4
5 <style> 5 <style>
6 img { 6 img {
7 -webkit-mask: url(resources/color-profile-mask-image.svg) top left; 7 -webkit-mask: url(resources/color-profile-mask-image.svg) top left;
8 -webkit-mask-size: 33% 33%; 8 -webkit-mask-size: 33% 33%;
9 -webkit-mask-repeat: space; 9 -webkit-mask-repeat: space;
10 width: 380px; 10 width: 380px;
(...skipping 15 matching lines...) Expand all
26 <img src="resources/red-at-12-oclock-with-color-profile.jpg"> 26 <img src="resources/red-at-12-oclock-with-color-profile.jpg">
27 </body> 27 </body>
28 28
29 <script> 29 <script>
30 function load() { 30 function load() {
31 if (window.testRunner) 31 if (window.testRunner)
32 runAfterLayoutAndPaint(changeColorProfile); 32 runAfterLayoutAndPaint(changeColorProfile);
33 } 33 }
34 34
35 function changeColorProfile() { 35 function changeColorProfile() {
36 setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100); 36 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 100);
37 } 37 }
38 38
39 function done() { 39 function done() {
40 setTimeout(function() { testRunner.notifyDone() }, 0); 40 setTimeout(function() { testRunner.notifyDone() }, 0);
41 } 41 }
42 42
43 if (window.internals)
44 internals.settings.setImageColorProfilesEnabled(true);
45
46 if (window.testRunner) { 43 if (window.testRunner) {
47 testRunner.dumpAsTextWithPixelResults(); 44 testRunner.dumpAsTextWithPixelResults();
48 testRunner.waitUntilDone(); 45 testRunner.waitUntilDone();
49 } 46 }
50 </script> 47 </script>
51 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698