# HG changeset patch # User Nicolas Chevobbe # Date 1521537979 -3600 # Node ID b0b5718ec0708b8c843b6d444f9857d2a0fb7621 # Parent 75044e5bc9d10cb418b51fd0585a77fbfe085eb1 Bug 1382601 - Fix test failure in damp due to EventEmitter change; r=pbro. MozReview-Commit-ID: 6eYKhqSZxpV diff --git a/testing/talos/talos/tests/devtools/addon/content/tests/inspector/mutations.js b/testing/talos/talos/tests/devtools/addon/content/tests/inspector/mutations.js --- a/testing/talos/talos/tests/devtools/addon/content/tests/inspector/mutations.js +++ b/testing/talos/talos/tests/devtools/addon/content/tests/inspector/mutations.js @@ -39,17 +39,17 @@ module.exports = async function() { }); }` ) + ")()", false); let test = runTest("inspector.mutations"); await new Promise(resolve => { let childListMutationsCounter = 0; - inspector.on("markupmutation", (evt, mutations) => { + inspector.on("markupmutation", mutations => { let childListMutations = mutations.filter(m => m.type === "childList"); childListMutationsCounter += childListMutations.length; if (childListMutationsCounter === LIMIT) { // Wait until we received exactly n=LIMIT mutations in the markup view. resolve(); } });