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

Side by Side Diff: LayoutTests/transitions/transition-on-element-with-content.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: gray; 10 background-color: gray;
11 content: 'Test'; 11 content: 'Test';
12 } 12 }
13 13
14 #box { 14 #box {
15 opacity: 1; 15 opacity: 1;
16 -webkit-transition: opacity 1s linear; 16 -webkit-transition: opacity 1s linear;
17 } 17 }
18 18
19 #box.final { 19 #box.final {
20 opacity: 0; 20 opacity: 0;
21 } 21 }
22 22
23 </style> 23 </style>
24 <script src="resources/transition-test-helpers.js"></script> 24 <script src="../animations/resources/animation-test-helpers.js"></script>
25 <script type="text/javascript"> 25 <script type="text/javascript">
26 26
27 const expectedValues = [ 27 const expectedValues = [
28 // [time, element-id, property, expected-value, tolerance] 28 // [time, element-id, property, expected-value, tolerance]
29 [0.5, 'box', 'opacity', 0.5, 0.1], 29 [0.5, 'box', 'opacity', 0.5, 0.1],
30 ]; 30 ];
31 31
32 function setupTest() 32 function setupTest()
33 { 33 {
34 document.getElementById('box').className = 'box final'; 34 document.getElementById('box').className = 'box final';
35 } 35 }
36 36
37 runTransitionTest(expectedValues, setupTest, usePauseAPI); 37 runTransitionTest(expectedValues, setupTest, usePauseAPI);
38 </script> 38 </script>
39 </head> 39 </head>
40 <body> 40 <body>
41 41
42 <!-- Test that a transition runs on an element with a 'content' property. --> 42 <!-- Test that a transition runs on an element with a 'content' property. -->
43 <div id="box" class="box"></div> 43 <div id="box" class="box"></div>
44 44
45 <div id="result"></div> 45 <div id="result"></div>
46 46
47 </body> 47 </body>
48 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698