Index: LayoutTests/webaudio/dom-exceptions.html |
diff --git a/LayoutTests/webaudio/dom-exceptions.html b/LayoutTests/webaudio/dom-exceptions.html |
index 8cd26a476fd158954c7f53788ca51e0d404017e2..d18575f6123821fb7769a86a1f1832e1a0782b65 100644 |
--- a/LayoutTests/webaudio/dom-exceptions.html |
+++ b/LayoutTests/webaudio/dom-exceptions.html |
@@ -165,6 +165,13 @@ function runTest() { |
node.connect(context.destination); |
shouldThrow("node.gain.exponentialRampToValueAtTime(-1, 0.1)"); |
shouldThrow("node.gain.exponentialRampToValueAtTime(0, 0.1)"); |
+ |
+ // Convolver buffer rate must match context rate. Create on offline context so we |
+ // specify the context rate exactly, in case the test is run on platforms with different |
+ // HW sample rates. |
+ shouldNotThrow("oc = new webkitOfflineAudioContext(1, 44100, 44100)"); |
+ shouldNotThrow("conv = oc.createConvolver()"); |
+ shouldThrow("conv.buffer = oc.createBuffer(1, 100, 22050)"); |
} |
runTest(); |