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

Side by Side Diff: LayoutTests/transitions/transition-hit-test-transform.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 #target { 6 #target {
7 position: absolute; 7 position: absolute;
8 left: 0px; 8 left: 0px;
9 height: 200px; 9 height: 200px;
10 width: 200px; 10 width: 200px;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 result += checkResult(150, false); 42 result += checkResult(150, false);
43 result += checkResult(300, true); 43 result += checkResult(300, true);
44 result += checkResult(450, false); 44 result += checkResult(450, false);
45 document.getElementById('result').innerHTML = result; 45 document.getElementById('result').innerHTML = result;
46 } 46 }
47 47
48 function doTest() 48 function doTest()
49 { 49 {
50 if (window.testRunner) { 50 if (window.testRunner) {
51 var target = document.getElementById('target'); 51 var target = document.getElementById('target');
52 if (!internals.pauseTransitionAtTimeOnElement("-webkit-transform ", 2.0, target)) 52 internals.pauseAnimations(2);
53 throw("Transition is not running");
54 53
55 checkResults(); 54 checkResults();
56 testRunner.notifyDone(); 55 testRunner.notifyDone();
57 } 56 }
58 else { 57 else {
59 window.setTimeout("checkResults()", 2000); 58 window.setTimeout("checkResults()", 2000);
60 } 59 }
61 } 60 }
62 61
63 function startTest() 62 function startTest()
(...skipping 13 matching lines...) Expand all
77 This test starts a transition of the '-webkit-transform' property and th en does elementFromPoint calls 76 This test starts a transition of the '-webkit-transform' property and th en does elementFromPoint calls
78 at the shown yellow dots to see if hit testing works 77 at the shown yellow dots to see if hit testing works
79 </div> 78 </div>
80 <div id="target"></div> 79 <div id="target"></div>
81 <div class="dot" style="left:150px"></div> 80 <div class="dot" style="left:150px"></div>
82 <div class="dot" style="left:300px"></div> 81 <div class="dot" style="left:300px"></div>
83 <div class="dot" style="left:450px"></div> 82 <div class="dot" style="left:450px"></div>
84 <div id="result"></div> 83 <div id="result"></div>
85 </body> 84 </body>
86 </html> 85 </html>
OLDNEW
« no previous file with comments | « LayoutTests/transitions/transition-hit-test.html ('k') | Source/core/page/animation/AnimationController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698