test for bug 1020205
authorKarl Tomlinson <karlt+@karlt.net>
Mon, 27 Jul 2015 17:31:49 +1200
changeset 254879 1058421266f40734ec2f87bd854366086a15fc9e
parent 254878 e485a89895eb4d2e44bcee8c6758a39a27620260
child 254880 40fe972a2dfb55d631d306df9f741a046efa3f8f
push id29123
push usercbook@mozilla.com
push dateTue, 28 Jul 2015 14:28:44 +0000
treeherdermozilla-central@bc589dd18ad5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1020205
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
test for bug 1020205
dom/media/test/crashtests/1020205.html
dom/media/test/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/dom/media/test/crashtests/1020205.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<script>
+var context = new window.AudioContext();
+var source = context.createBufferSource();
+source.connect(context.destination);
+source.playbackRate.value = 0.01;
+source.buffer = context.createBuffer(2, 32, context.sampleRate);
+source.start(0);
+
+setTimeout(
+    function() {
+        source.buffer = context.createBuffer(1, 10, context.sampleRate);
+        source.playbackRate.value = 1;
+        source.onended =
+            function() {
+                document.documentElement.removeAttribute("class");
+            };
+    }, 0);
+
+</script>
+</html>
--- a/dom/media/test/crashtests/crashtests.list
+++ b/dom/media/test/crashtests/crashtests.list
@@ -64,16 +64,17 @@ load 933151.html
 load 933156.html
 load 944851.html
 load 952756.html
 load 966636.html
 load 986901.html
 load 990794.html
 load 1012609.html
 load 1015662.html
+load 1020205.html
 skip-if(Android||B2G) test-pref(media.navigator.permission.disabled,true) load 1028458.html # bug 1048863
 load analyser-channels-1.html
 load buffer-source-ended-1.html
 load doppler-1.html
 HTTP load media-element-source-seek-1.html
 load offline-buffer-source-ended-1.html
 load oscillator-ended-1.html
 load oscillator-ended-2.html