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

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

Issue 2831953002: Update TestExpectations and rebase some tests. (Closed)
Patch Set: New baselines Created 3 years, 8 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 .reflection { 6 .reflection {
7 -webkit-box-reflect: below 5px -webkit-gradient(linear, left top, left botto m, 7 -webkit-box-reflect: below 5px -webkit-gradient(linear, left top, left botto m,
8 from(transparent), color-stop(0, transparent), to(white)); 8 from(transparent), color-stop(0, transparent), to(white));
9 background: url("resources/red-at-12-oclock-with-color-profile.jpg"); 9 background: url("resources/red-at-12-oclock-with-color-profile.jpg");
10 height: 260px; 10 height: 260px;
11 } 11 }
12 </style> 12 </style>
13 13
14 <!-- The blue sector of the image should be at 12 o'clock and reflected below. - -> 14 <!-- The blue sector of the image should be at 12 o'clock and reflected below. - ->
15 <div></div> 15 <div></div>
16 16
17 <script> 17 <script>
18 window.onload = function() { 18 window.onload = function() {
19 if (window.testRunner) {
20 testRunner.dumpAsTextWithPixelResults();
21 testRunner.waitUntilDone();
22 }
23
19 document.querySelector('div').classList.add('reflection'); 24 document.querySelector('div').classList.add('reflection');
20 25
21 if (window.testRunner) 26 if (window.testRunner)
22 runAfterLayoutAndPaint(changeColorProfile); 27 runAfterLayoutAndPaint(changeColorProfile);
23 }; 28 };
24 29
25 function changeColorProfile() { 30 function changeColorProfile() {
26 testRunner.setColorProfile('colorSpin', done); 31 testRunner.setColorProfile('colorSpin', done);
27 } 32 }
28 33
29 function done() { 34 function done() {
30 setTimeout(function() { testRunner.notifyDone() }, 0); 35 runAfterLayoutAndPaint(function() { testRunner.notifyDone() });
31 } 36 }
32 37
33 if (window.testRunner) {
34 testRunner.dumpAsTextWithPixelResults();
35 testRunner.waitUntilDone();
36 }
37 </script> 38 </script>
38 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698