| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta name="viewport" content="initial-scale=1"/> | 4 <meta name="viewport" content="initial-scale=1"/> |
| 5 <title>Concave Paths test</title> | 5 <title>Concave Paths test</title> |
| 6 <script> | 6 <script> |
| 7 var g_swapsBeforeAck = 15; | 7 var g_swapsBeforeAck = 15; |
| 8 | 8 |
| 9 function main() { | 9 function main() { |
| 10 waitForFinish(); | 10 waitForFinish(); |
| 11 } | 11 } |
| 12 | 12 |
| 13 function waitForFinish() | 13 function waitForFinish() |
| 14 { | 14 { |
| 15 if (g_swapsBeforeAck == 0) { | 15 if (g_swapsBeforeAck == 0) { |
| 16 domAutomationController.setAutomationId(1); | |
| 17 domAutomationController.send("SUCCESS"); | 16 domAutomationController.send("SUCCESS"); |
| 18 } else { | 17 } else { |
| 19 g_swapsBeforeAck--; | 18 g_swapsBeforeAck--; |
| 20 document.getElementById('paths').style.zIndex = g_swapsBeforeAck + 1; | 19 document.getElementById('paths').style.zIndex = g_swapsBeforeAck + 1; |
| 21 window.requestAnimationFrame(waitForFinish); | 20 window.requestAnimationFrame(waitForFinish); |
| 22 } | 21 } |
| 23 } | 22 } |
| 24 </script> | 23 </script> |
| 25 </head> | 24 </head> |
| 26 <body onload="main()"> | 25 <body onload="main()"> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 41 </g> | 40 </g> |
| 42 <g transform="translate(400, 0)"> | 41 <g transform="translate(400, 0)"> |
| 43 <use xlink:href="#chomp"/> | 42 <use xlink:href="#chomp"/> |
| 44 </g> | 43 </g> |
| 45 <g transform="translate(500, 0)"> | 44 <g transform="translate(500, 0)"> |
| 46 <use xlink:href="#chomp"/> | 45 <use xlink:href="#chomp"/> |
| 47 </g> | 46 </g> |
| 48 </svg> | 47 </svg> |
| 49 </body> | 48 </body> |
| 50 </html> | 49 </html> |
| OLD | NEW |