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

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

Issue 15738009: Beat the transition tests with a sanity stick. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass presubmit. Created 7 years, 7 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 | Annotate | Revision Log
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 12 matching lines...) Expand all
23 #boxShorthand { 23 #boxShorthand {
24 border-image: url('../animations/resources/blue-100.png') 5 5 5 5 /40px stretch stretch; 24 border-image: url('../animations/resources/blue-100.png') 5 5 5 5 /40px stretch stretch;
25 -webkit-transition-property: border-image; 25 -webkit-transition-property: border-image;
26 } 26 }
27 27
28 #boxShorthand.final { 28 #boxShorthand.final {
29 border-image: url('../animations/resources/stripes-100.png') 5 5 5 5 /40 px stretch stretch; 29 border-image: url('../animations/resources/stripes-100.png') 5 5 5 5 /40 px stretch stretch;
30 } 30 }
31 31
32 </style> 32 </style>
33 <script src="resources/transition-test-helpers.js" type="text/javascript"></ script> 33 <script src="../animations/resources/animation-test-helpers.js" type="text/j avascript"></script>
34 <script> 34 <script>
35 35
36 const expectedValues = [ 36 const expectedValues = [
37 // [time, element-id, property, expected-value, tolerance] 37 // [time, element-id, property, expected-value, tolerance]
38 [0.5, 'box', 'border-image-source', 0.5, 0.05], 38 [0.5, 'box', 'border-image-source', 0.5, 0.05],
39 [0.5, 'boxShorthand', 'border-image', 0.5, 0.05], 39 [0.5, 'boxShorthand', 'border-image', 0.5, 0.05],
40 ]; 40 ];
41 41
42 function setupTest() 42 function setupTest()
43 { 43 {
44 document.getElementById('box').className = 'box final'; 44 document.getElementById('box').className = 'box final';
45 document.getElementById('boxShorthand').className = 'box final'; 45 document.getElementById('boxShorthand').className = 'box final';
46 } 46 }
47 47
48 runTransitionTest(expectedValues, setupTest, usePauseAPI, true); 48 runTransitionTest(expectedValues, setupTest, usePauseAPI);
49 </script> 49 </script>
50 </head> 50 </head>
51 <body> 51 <body>
52 <div id="box" class="box"></div> 52 <div id="box" class="box"></div>
53 <div id="boxShorthand" class="box"></div> 53 <div id="boxShorthand" class="box"></div>
54 54
55 <div id="result"></div> 55 <div id="result"></div>
56 </body> 56 </body>
57 </html> 57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698