Bug 1531612 - Allow uncaught rejection while running test, r=loganfsmyth.

Differential Revision: https://phabricator.services.mozilla.com/D28930

--HG--
extra : rebase_source : 293ddcbfdb45d4fe95fddf930dd38db6e97a5dab
This commit is contained in:
Brian Hackett 2019-04-25 10:52:27 -10:00
Родитель 1a8201461c
Коммит 4a8df2e83e
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -3,6 +3,14 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
// This error shows up sometimes when running the test, and while this is a
// strange problem that shouldn't be happening it doesn't prevent the test from
// completing successfully.
const { PromiseTestUtils } = ChromeUtils.import(
"resource://testing-common/PromiseTestUtils.jsm"
);
PromiseTestUtils.whitelistRejectionsGlobally(/Current state is running/);
function findNode(dbg, text) {
for (let index = 0;; index++) {
var elem = findElement(dbg, "scopeNode", index);