зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1a8201461c
Коммит
4a8df2e83e
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче