mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
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:
parent
11e0c929f7
commit
f2d98c7674
@ -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);
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user