Bug 1208373 - Fix test_peerConnection_capturedVideo.html to wait for close() promise. r=jib

MozReview-Commit-ID: AOrm5JkfxAG

--HG--
extra : rebase_source : 8294e3abce8e7cfb0d4b76a2b782ee9d9d6d4642
extra : source : b9c629250c90c42950b2b91ccf248dd1da6cdbf5
This commit is contained in:
Andreas Pehrson 2016-05-04 16:32:17 +02:00
parent 11e0c929f7
commit f2d98c7674

View File

@ -73,8 +73,8 @@ function startTest(media, token) {
(e.code ? " (code=" + e.code + ")" : "") +
" in test for " + media.name +
(e.stack ? ":\n" + e.stack : "")))
.then(() => test && test.close())
.then(() => {
if (test) { test.close(); }
removeNodeAndSource(video);
manager.finished(token);
})