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

Side by Side Diff: LayoutTests/transitions/cross-fade-background-image.html

Issue 722753002: Fix transitions/cross-fade-background-image.html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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> 1 <!DOCTYPE>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 .box { 6 .box {
7 height: 200px; 7 height: 200px;
8 width: 200px; 8 width: 200px;
9 margin: 10px; 9 margin: 10px;
10 -webkit-transition-duration: 1s; 10 -webkit-transition-duration: 1s;
(...skipping 11 matching lines...) Expand all
22 22
23 #boxShorthand { 23 #boxShorthand {
24 background: url('../fast/backgrounds/repeat/resources/gradient.gif'); 24 background: url('../fast/backgrounds/repeat/resources/gradient.gif');
25 -webkit-transition-property: background; 25 -webkit-transition-property: background;
26 } 26 }
27 27
28 #boxShorthand.final { 28 #boxShorthand.final {
29 background: url('../fast/backgrounds/repeat/resources/nav.blue.gif'); 29 background: url('../fast/backgrounds/repeat/resources/nav.blue.gif');
30 } 30 }
31 31
32 #boxStatic {
33 background-image: -webkit-cross-fade(url('../fast/backgrounds/repeat/res ources/gradient.gif'),
34 url('../fast/backgrounds/repeat/resources/nav.blue.gif'), 0.5);
35 }
36
32 </style> 37 </style>
33 <script src="../animations/resources/animation-test-helpers.js" type="text/j avascript"></script> 38 <script src="../animations/resources/animation-test-helpers.js" type="text/j avascript"></script>
34 <script> 39 <script>
35 40
36 const expectedValues = [ 41 const expectedValues = [
37 // [time, element-id, property, expected-value, tolerance] 42 // [time, element-id, property, expected-value, tolerance]
38 [0.5, 'box', 'background-image', 0.5, 0.05], 43 [0.5, ['box', 'boxStatic'], 'background-image', null, 0.05],
39 [0.5, 'boxShorthand', 'background-image', 0.5, 0.05], 44 [0.5, ['boxShorthand', 'boxStatic'], 'background-image', null, 0.05],
40 ]; 45 ];
41 46
42 function setupTest() 47 function setupTest()
43 { 48 {
44 document.getElementById('box').className = 'box final'; 49 document.getElementById('box').className = 'box final';
45 document.getElementById('boxShorthand').className = 'box final'; 50 document.getElementById('boxShorthand').className = 'box final';
46 } 51 }
47 52
48 runTransitionTest(expectedValues, setupTest); 53 runTransitionTest(expectedValues, setupTest);
49 </script> 54 </script>
50 </head> 55 </head>
51 <body> 56 <body>
52 <div id="box" class="box"></div> 57 <div id="box" class="box"></div>
53 <div id="boxShorthand" class="box"></div> 58 <div id="boxShorthand" class="box"></div>
59 <div id="boxStatic" class="box"></div>
54 60
55 <div id="result"></div> 61 <div id="result"></div>
56 </body> 62 </body>
57 </html> 63 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/transitions/cross-fade-background-image-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698