Index: chrome/test/data/media/seek-jumper.html |
diff --git a/chrome/test/data/media/seek-jumper.html b/chrome/test/data/media/seek-jumper.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..90db7367e2f21f7184c230ffe734897ee3066ed4 |
--- /dev/null |
+++ b/chrome/test/data/media/seek-jumper.html |
@@ -0,0 +1,20 @@ |
+<html> |
+<head> |
+<script> |
+ |
scherkus (not reviewing)
2011/10/28 21:03:13
blank line
Ami GONE FROM CHROMIUM
2011/10/28 21:54:28
Done.
|
+// Issue a bunch of seeks in a row, with some overlap. |
+var seekCount = 0; |
+function seeked() { |
+ var a = document.querySelector('audio'); |
+ 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
|
+ ++seekCount; |
+ window.setTimeout(seeked, 1); |
+} |
+</script> |
+</head> |
+<body> |
+ Test that rapid seeking fails to crash the browser. |
+ |
+ <audio controls autoplay loop src="bear.wav" onseeked="seeked()"></audio> |
+</body> |
+</html> |