qunit: Restore sinon.sandbox after teardown instead of before
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 7 Jul 2015 14:46:32 +0000 (15:46 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 7 Jul 2015 14:50:13 +0000 (15:50 +0100)
commit3e59344c695ed6f57582bd111c8d898743753423
tree12e08103cad28cf13498f39276e4f42275351b6b
parent9e792f4e266a8d195bc937ec3f120c693e91064d
qunit: Restore sinon.sandbox after teardown instead of before

This was causing pending (mocked) XHR requests to sometimes be
cleaned up prematurely.

As a general rule, setup always calls its parent first. And teardown
always calls its parent last. The inner callback runs within the
scope of the outer one and should still have acces to the sinon mocks.

Change-Id: Ic4d9243c04af73e529b689e650d35ddabaa7f4b9
tests/qunit/data/testrunner.js