diff --git a/dom/network/tests/test_udpsocket.html b/dom/network/tests/test_udpsocket.html index 2fe2b01528c..ab650af74eb 100644 --- a/dom/network/tests/test_udpsocket.html +++ b/dom/network/tests/test_udpsocket.html @@ -312,13 +312,13 @@ function testCloseBeforeOpened() { function testOpenWithoutClose() { info('test for open without close'); - let opened = []; + let closed = []; for (let i = 0; i < 50; i++) { let socket = new UDPSocket(); - opened.push(socket.opened); + closed.push(socket.closed); } - return Promise.all(opened); + return Promise.all(closed); } function testBFCache() { @@ -377,6 +377,10 @@ function runTest() { .then(function() { info('test finished'); SimpleTest.finish(); + }) + .catch(function(err) { + ok(false, 'test failed due to: ' + err); + SimpleTest.finish(); }); }