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

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..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>
« 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