OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 function triggerEmptyTransition() | 6 function triggerEmptyTransition() |
7 { | 7 { |
8 node.style.transition = "1s"; | 8 node.style.transition = "1s"; |
9 node.offsetTop; | 9 node.offsetTop; |
10 node.style.width = "200px"; | 10 node.style.width = "200px"; |
11 node.offsetTop; | 11 node.offsetTop; |
12 // Deliberately delay for two RAFs, which causes the animation to start | 12 // Deliberately delay for two RAFs, which causes the animation to start |
13 // before we cancel it by clearing the transition. | 13 // before we cancel it by clearing the transition. |
(...skipping 28 matching lines...) Expand all Loading... |
42 InspectorTest.completeTest(); | 42 InspectorTest.completeTest(); |
43 } | 43 } |
44 } | 44 } |
45 | 45 |
46 </script> | 46 </script> |
47 </head> | 47 </head> |
48 <body onload="runTest()"> | 48 <body onload="runTest()"> |
49 <div id="node" style="background-color: red; width: 100px"></div> | 49 <div id="node" style="background-color: red; width: 100px"></div> |
50 </body> | 50 </body> |
51 </html> | 51 </html> |
OLD | NEW |