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..08bc8b765fa958e67b0c9e428636f27326ee8347 |
--- /dev/null |
+++ b/chrome/test/data/media/seek-jumper.html |
@@ -0,0 +1,19 @@ |
+<html> |
+<head> |
+<script> |
+// 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; |
+ ++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> |