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

Side by Side Diff: LayoutTests/transitions/opacity-transition-zindex.html

Issue 14556022: Simplify animation testing API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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 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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698