Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4661)

Unified Diff: chrome/test/data/media/seek-jumper.html

Issue 8418031: Regression tests for two recently-fixed audio-related crashers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« chrome/browser/media/media_browsertest.cc ('K') | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« chrome/browser/media/media_browsertest.cc ('K') | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698