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

Side by Side Diff: LayoutTests/transitions/transition-hit-test.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: 100px; 8 left: 100px;
9 height: 200px; 9 height: 200px;
10 width: 200px; 10 width: 200px;
(...skipping 29 matching lines...) Expand all
40 result += checkResult(150, false); 40 result += checkResult(150, false);
41 result += checkResult(300, true); 41 result += checkResult(300, true);
42 result += checkResult(450, false); 42 result += checkResult(450, false);
43 document.getElementById('result').innerHTML = result; 43 document.getElementById('result').innerHTML = result;
44 } 44 }
45 45
46 function doTest() 46 function doTest()
47 { 47 {
48 if (window.testRunner) { 48 if (window.testRunner) {
49 var target = document.getElementById('target'); 49 var target = document.getElementById('target');
50 if (!internals.pauseTransitionAtTimeOnElement("left", 2.0, targe t)) 50 internals.pauseAnimations(2);
51 throw("Transition is not running");
52 51
53 checkResults(); 52 checkResults();
54 testRunner.notifyDone(); 53 testRunner.notifyDone();
55 } 54 }
56 else { 55 else {
57 window.setTimeout("checkResults()", 2000); 56 window.setTimeout("checkResults()", 2000);
58 } 57 }
59 } 58 }
60 59
61 function startTest() 60 function startTest()
(...skipping 13 matching lines...) Expand all
75 This test starts a transition of the 'left' property and then does eleme ntFromPoint calls 74 This test starts a transition of the 'left' property and then does eleme ntFromPoint calls
76 at the shown yellow dots to see if hit testing works 75 at the shown yellow dots to see if hit testing works
77 </div> 76 </div>
78 <div id="target"></div> 77 <div id="target"></div>
79 <div class="dot" style="left:150px"></div> 78 <div class="dot" style="left:150px"></div>
80 <div class="dot" style="left:300px"></div> 79 <div class="dot" style="left:300px"></div>
81 <div class="dot" style="left:450px"></div> 80 <div class="dot" style="left:450px"></div>
82 <div id="result"></div> 81 <div id="result"></div>
83 </body> 82 </body>
84 </html> 83 </html>
OLDNEW
« no previous file with comments | « LayoutTests/transitions/transition-drt-api-expected.txt ('k') | LayoutTests/transitions/transition-hit-test-transform.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698