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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/color-profile-image-pseudo-content.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 <style> 4 <style>
5 h1 { 5 h1 {
6 overflow: hidden; 6 overflow: hidden;
7 width: 792px; 7 width: 792px;
8 height: 160px; 8 height: 160px;
9 } 9 }
10 10
(...skipping 11 matching lines...) Expand all
22 </h1> 22 </h1>
23 </body> 23 </body>
24 24
25 <script> 25 <script>
26 window.onload = function() { 26 window.onload = function() {
27 if (window.testRunner) 27 if (window.testRunner)
28 runAfterLayoutAndPaint(changeColorProfile); 28 runAfterLayoutAndPaint(changeColorProfile);
29 }; 29 };
30 30
31 function changeColorProfile() { 31 function changeColorProfile() {
32 setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 0); 32 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 0);
33 } 33 }
34 34
35 function done() { 35 function done() {
36 setTimeout(function() { testRunner.notifyDone() }, 0); 36 setTimeout(function() { testRunner.notifyDone() }, 0);
37 } 37 }
38 38
39 if (window.internals)
40 internals.settings.setImageColorProfilesEnabled(true);
41
42 if (window.testRunner) { 39 if (window.testRunner) {
43 testRunner.dumpAsTextWithPixelResults(); 40 testRunner.dumpAsTextWithPixelResults();
44 testRunner.waitUntilDone(); 41 testRunner.waitUntilDone();
45 } 42 }
46 </script> 43 </script>
47 </html> 44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698