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

Side by Side Diff: third_party/WebKit/LayoutTests/images/color-profile-object.html

Issue 2938543003: Remove almost all Javascript calls to setColorProfile (Closed)
Patch Set: Created 3 years, 6 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 object { border: 1px solid transparent } 6 object { border: 1px solid transparent }
7 </style> 7 </style>
8 8
9 <body> 9 <body>
10 <!-- The blue sector of the image should be at 12 o'clock. --> 10 <!-- The blue sector of the image should be at 12 o'clock. -->
11 <object width="500px" data="resources/red-at-12-oclock-with-color-profile.jpg"> 11 <object width="500px" data="resources/red-at-12-oclock-with-color-profile.jpg">
12 </object> 12 </object>
13 </body> 13 </body>
14 14
15 <script> 15 <script>
16 window.onload = function() { 16 window.onload = function() {
17 if (window.testRunner) 17 if (window.testRunner)
18 runAfterLayoutAndPaint(changeColorProfile); 18 runAfterLayoutAndPaint(function() { testRunner.notifyDone() });
19 }; 19 };
20 20
21 function changeColorProfile() {
22 testRunner.setColorProfile('colorSpin', done);
23 }
24
25 function done() {
26 setTimeout(function() { testRunner.notifyDone() }, 0);
27 }
28
29 if (window.testRunner) { 21 if (window.testRunner) {
30 testRunner.dumpAsTextWithPixelResults(); 22 testRunner.dumpAsTextWithPixelResults();
31 testRunner.waitUntilDone(); 23 testRunner.waitUntilDone();
32 } 24 }
33 </script> 25 </script>
34 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698