Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <head> | |
| 3 <script> | |
| 4 | |
|
scherkus (not reviewing)
2011/10/28 21:03:13
blank line
Ami GONE FROM CHROMIUM
2011/10/28 21:54:28
Done.
| |
| 5 // Issue a bunch of seeks in a row, with some overlap. | |
| 6 var seekCount = 0; | |
| 7 function seeked() { | |
| 8 var a = document.querySelector('audio'); | |
| 9 a.currentTime = Math.random() * a.duration; | |
|
scherkus (not reviewing)
2011/10/28 21:03:13
is this unseeded?
Ami GONE FROM CHROMIUM
2011/10/28 21:54:28
It is seeded randomly by current time. I don't th
| |
| 10 ++seekCount; | |
| 11 window.setTimeout(seeked, 1); | |
| 12 } | |
| 13 </script> | |
| 14 </head> | |
| 15 <body> | |
| 16 Test that rapid seeking fails to crash the browser. | |
| 17 | |
| 18 <audio controls autoplay loop src="bear.wav" onseeked="seeked()"></audio> | |
| 19 </body> | |
| 20 </html> | |
| OLD | NEW |