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

Unified Diff: LayoutTests/webaudio/audiobuffer.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 | « no previous file | LayoutTests/webaudio/audiobuffersource-channels.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/webaudio/audiobuffer.html
diff --git a/LayoutTests/webaudio/audiobuffer.html b/LayoutTests/webaudio/audiobuffer.html
index ee948f372456127ea99b884ebbcca7d2e204ee71..e154571e11b7954ef7ca4f34496d187cfb22afd4 100644
--- a/LayoutTests/webaudio/audiobuffer.html
+++ b/LayoutTests/webaudio/audiobuffer.html
@@ -3,6 +3,7 @@
<head>
<script src="../resources/js-test.js"></script>
<script src="resources/audio-testing.js"></script>
+<script src="resources/compatibility.js"></script>
</head>
<body>
<script>
@@ -12,7 +13,7 @@ var sampleRate = 44100.0
var lengthInSeconds = 2;
var numberOfChannels = 4;
-var context = new webkitAudioContext();
+var context = new AudioContext();
var buffer = context.createBuffer(numberOfChannels, sampleRate * lengthInSeconds, sampleRate);
if (buffer.sampleRate === sampleRate)
« no previous file with comments | « no previous file | LayoutTests/webaudio/audiobuffersource-channels.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698