| OLD | NEW |
| 1 // We want to be able to run these tests with chrome that only supports the pref
ixed | 1 // We want to be able to run these tests with chrome that only supports the pref
ixed |
| 2 // AudioContext. This is useful in case a regression has occurred. | 2 // AudioContext. This is useful in case a regression has occurred. |
| 3 | 3 |
| 4 if (window.hasOwnProperty('webkitAudioContext') && | 4 if (window.hasOwnProperty('webkitAudioContext') && |
| 5 !window.hasOwnProperty('AudioContext')) { | 5 !window.hasOwnProperty('AudioContext')) { |
| 6 window.AudioContext = webkitAudioContext; | 6 window.AudioContext = webkitAudioContext; |
| 7 window.OfflineAudioContext = webkitOfflineAudioContext; | 7 window.OfflineAudioContext = webkitOfflineAudioContext; |
| 8 console.log("Using deprecated prefixed AudioContext or OfflineAudioContext")
; | 8 console.log("Using deprecated prefixed AudioContext or OfflineAudioContext")
; |
| 9 } | 9 } |
| OLD | NEW |