Bug 1254617 - browser_dbg_debugger-statement.js has unhandled promise rejections. r=ejpbruel
authorJarda Snajdr <jsnajdr@gmail.com>
Thu, 14 Apr 2016 07:58:00 +0200
changeset 331650 d4cd977c44f0eaa7d7a6ec2f77481950e33833c6
parent 331649 dece9231ef6cfdd1d34074da3af8925530bfec5f
child 331651 681e7c3bd5e4f9b988c1e4399303749660f3a6b7
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersejpbruel
bugs1254617
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1254617 - browser_dbg_debugger-statement.js has unhandled promise rejections. r=ejpbruel
devtools/client/debugger/test/mochitest/browser_dbg_debugger-statement.js
--- a/devtools/client/debugger/test/mochitest/browser_dbg_debugger-statement.js
+++ b/devtools/client/debugger/test/mochitest/browser_dbg_debugger-statement.js
@@ -1,18 +1,13 @@
 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
 /* vim: set ft=javascript ts=2 et sw=2 tw=80: */
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
-// Whitelisting this test.
-// As part of bug 1077403, the leaking uncaught rejections should be fixed.
-thisTestLeaksUncaughtRejectionsAndShouldBeFixed(
-  "Error: Assertion failure: Should have an event loop.");
-
 /**
  * Tests the behavior of the debugger statement.
  */
 
 const TAB_URL = EXAMPLE_URL + "doc_inline-debugger-statement.html";
 
 var gClient;
 var gTab;
@@ -78,16 +73,18 @@ function testDebuggerStatement([aGrip, a
     gClient.request({ to: aResponse.threadActor, type: "resume" }, () => {
       ok(true, "The pause handler was triggered on a debugger statement.");
       deferred.resolve();
     });
   });
 
   // Reach around the debugging protocol and execute the debugger statement.
   callInTab(gTab, "runDebuggerStatement");
+
+  return deferred.promise;
 }
 
 function closeConnection() {
   let deferred = promise.defer();
   gClient.close(deferred.resolve);
   return deferred.promise;
 }