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

Side by Side Diff: LayoutTests/transitions/longhand-vs-shorthand-initial.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: 100px; 7 height: 100px;
8 width: 100px; 8 width: 100px;
9 margin: 10px; 9 margin: 10px;
10 background-color: white; 10 background-color: white;
11 -webkit-transition-property: width; 11 -webkit-transition-property: width;
12 } 12 }
13 13
14 .box { 14 .box {
15 -webkit-transition: 2s; 15 -webkit-transition: 2s;
16 } 16 }
17 17
18 #box.final { 18 #box.final {
19 background-color: black; 19 background-color: black;
20 } 20 }
21 21
22 </style> 22 </style>
23 <script src="resources/transition-test-helpers.js"></script> 23 <script src="../animations/resources/animation-test-helpers.js"></script>
24 <script type="text/javascript"> 24 <script type="text/javascript">
25 25
26 const expectedValues = [ 26 const expectedValues = [
27 // [time, element-id, property, expected-value, tolerance] 27 // [time, element-id, property, expected-value, tolerance]
28 [0.5, 'box', 'background-color', [153, 153, 153], 4], 28 [0.5, 'box', 'background-color', [153, 153, 153], 4],
29 ]; 29 ];
30 30
31 function setupTest() 31 function setupTest()
32 { 32 {
33 document.getElementById('box').className = 'box final'; 33 document.getElementById('box').className = 'box final';
34 } 34 }
35 35
36 runTransitionTest(expectedValues, setupTest, usePauseAPI); 36 runTransitionTest(expectedValues, setupTest, usePauseAPI);
37 </script> 37 </script>
38 </head> 38 </head>
39 <body> 39 <body>
40 40
41 <div id="box" class="box"></div> 41 <div id="box" class="box"></div>
42 42
43 <div id="result"> 43 <div id="result">
44 </div> 44 </div>
45 45
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW
« no previous file with comments | « LayoutTests/transitions/font-family-during-transition-expected.txt ('k') | LayoutTests/transitions/mask-transitions.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698