Merge pull request #9485 from atom/ns-disable-throttle-hack

Disable throttling in test windows via WebAudio hack
This commit is contained in:
Nathan Sobo
2015-11-07 16:02:33 -07:00

View File

@@ -57,6 +57,12 @@ module.exports = ({blobStore}) ->
document.title = "Spec Suite"
# Avoid throttling of test window by playing silence
context = new AudioContext()
source = context.createBufferSource()
source.connect(context.destination)
source.start(0)
testRunner = require(testRunnerPath)
legacyTestRunner = require(legacyTestRunnerPath)
buildDefaultApplicationDelegate = -> new ApplicationDelegate()