| Index: LayoutTests/webaudio/resources/compatibility.js
|
| diff --git a/LayoutTests/webaudio/resources/compatibility.js b/LayoutTests/webaudio/resources/compatibility.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7b400a134411326cc4b30040047ae26b778a12a4
|
| --- /dev/null
|
| +++ b/LayoutTests/webaudio/resources/compatibility.js
|
| @@ -0,0 +1,9 @@
|
| +// We want to be able to run these tests with chrome that only supports the prefixed
|
| +// AudioContext. This is useful in case a regression has occurred.
|
| +
|
| +if (window.hasOwnProperty('webkitAudioContext') &&
|
| + !window.hasOwnProperty('AudioContext')) {
|
| + window.AudioContext = webkitAudioContext;
|
| + window.OfflineAudioContext = webkitOfflineAudioContext;
|
| + console.log("Using deprecated prefixed AudioContext or OfflineAudioContext");
|
| +}
|
|
|