| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style> | 5 <style> |
| 6 .container { | 6 .container { |
| 7 position: relative; | 7 position: relative; |
| 8 height: 300px; | 8 height: 300px; |
| 9 width: 300px; | 9 width: 300px; |
| 10 margin: 10px; | 10 margin: 10px; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 function runTest() | 44 function runTest() |
| 45 { | 45 { |
| 46 var container = document.getElementById('first'); | 46 var container = document.getElementById('first'); |
| 47 container.style.opacity = 1; | 47 container.style.opacity = 1; |
| 48 | 48 |
| 49 // dump the tree in the middle of the transition | 49 // dump the tree in the middle of the transition |
| 50 if (window.testRunner) | 50 if (window.testRunner) |
| 51 window.setTimeout(function() { | 51 window.setTimeout(function() { |
| 52 var firstElement = document.getElementById('first'); | 52 var firstElement = document.getElementById('first'); |
| 53 internals.pauseTransitionAtTimeOnElement("opacity", 2.5, first); | 53 internals.pauseAnimations(2.5); |
| 54 testRunner.notifyDone(); | 54 testRunner.notifyDone(); |
| 55 }, 0); | 55 }, 0); |
| 56 } | 56 } |
| 57 // FIXME: this should use runTransitionTest(). | 57 // FIXME: this should use runTransitionTest(). |
| 58 window.addEventListener('load', runTest, false); | 58 window.addEventListener('load', runTest, false); |
| 59 </script> | 59 </script> |
| 60 </head> | 60 </head> |
| 61 <body> | 61 <body> |
| 62 | 62 |
| 63 <div class="container" id="first"> | 63 <div class="container" id="first"> |
| 64 <div class="box"></div> | 64 <div class="box"></div> |
| 65 <div class="indicator"></div> | 65 <div class="indicator"></div> |
| 66 </div> | 66 </div> |
| 67 | 67 |
| 68 </body> | 68 </body> |
| 69 </html> | 69 </html> |
| OLD | NEW |