Disable throttling in test windows via WebAudio hack

Throttling in test windows is annoying when tests run interactively,
and *seems* to cause issues with animation frames not firing even in
headless tests, though it’s difficult to fully confirm since this issue
is intermittent.
This commit is contained in:
Nathan Sobo
2015-11-07 16:01:20 -07:00
parent 1fd2ba084c
commit d46cea9c41

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()