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

Unified Diff: LayoutTests/webaudio/dom-exceptions.html

Issue 208943004: Update WebAudio layout tests to use unprefixed AudioContext. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add console.log to compatibility.js Created 6 years, 9 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
« no previous file with comments | « LayoutTests/webaudio/distance-linear.html ('k') | LayoutTests/webaudio/dom-exceptions-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/webaudio/dom-exceptions.html
diff --git a/LayoutTests/webaudio/dom-exceptions.html b/LayoutTests/webaudio/dom-exceptions.html
index d18575f6123821fb7769a86a1f1832e1a0782b65..bba6c260816a96375a646f48d621ed16b1ee6b33 100644
--- a/LayoutTests/webaudio/dom-exceptions.html
+++ b/LayoutTests/webaudio/dom-exceptions.html
@@ -1,6 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
+<script src="resources/compatibility.js"></script>
<script src="resources/audio-testing.js"></script>
<script src="../resources/js-test.js"></script>
<script src="resources/biquad-testing.js"></script>
@@ -24,8 +25,8 @@ function runTest() {
testRunner.dumpAsText();
}
- context = new webkitAudioContext();
- otherContext = new webkitAudioContext();
+ context = new AudioContext();
+ otherContext = new AudioContext();
// Test creation of various objects
@@ -108,12 +109,12 @@ function runTest() {
// OfflineAudioContext
// Invalid number of channels (unspecified error)
- shouldThrow("new webkitOfflineAudioContext(99, 100, context.sampleRate)");
+ shouldThrow("new OfflineAudioContext(99, 100, context.sampleRate)");
// Invalid sample rate. (unspecified error)
- shouldThrow("new webkitOfflineAudioContext(1, 100, 1)");
- shouldThrow("new webkitOfflineAudioContext(1, 100, 1e6)");
+ shouldThrow("new OfflineAudioContext(1, 100, 1)");
+ shouldThrow("new OfflineAudioContext(1, 100, 1e6)");
// Invalid frame length (crbug.com/351277)
- shouldThrow("new webkitOfflineAudioContext(1, -88200000000000, 44100)");
+ shouldThrow("new OfflineAudioContext(1, -88200000000000, 44100)");
// WaveShaper types
node = context.createWaveShaper();
@@ -169,7 +170,7 @@ function runTest() {
// 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("oc = new OfflineAudioContext(1, 44100, 44100)");
shouldNotThrow("conv = oc.createConvolver()");
shouldThrow("conv.buffer = oc.createBuffer(1, 100, 22050)");
}
« no previous file with comments | « LayoutTests/webaudio/distance-linear.html ('k') | LayoutTests/webaudio/dom-exceptions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698