| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |