Skip to content

Instantly share code, notes, and snippets.

@juliandescottes
Created November 26, 2018 21:18
Show Gist options
  • Save juliandescottes/bf5dab7b58d922b1d8c5b4aee8ef8dff to your computer and use it in GitHub Desktop.
Save juliandescottes/bf5dab7b58d922b1d8c5b4aee8ef8dff to your computer and use it in GitHub Desktop.
# HG changeset patch
# User Julian Descottes <[email protected]>
# Date 1543267098 -3600
# Mon Nov 26 22:18:18 2018 +0100
# Node ID f92035925ff9210741b524eb68455d1bb5f6cb3e
# Parent bd490139b395d47c6f1b4af6cf34f572a1902fe2
Bug 1497457 - Fix aboutdebugging systemaddons test after signature change;r=test-only
diff --git a/devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_system_addons.js b/devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_system_addons.js
--- a/devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_system_addons.js
+++ b/devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_system_addons.js
@@ -54,17 +54,17 @@ add_task(async function testShowSystemAd
// Create a basic mock for this-firefox client, and setup a runtime-client-factory mock
// to return our mock client when needed.
function setupThisFirefoxMock() {
const runtimeClientFactoryMock = createRuntimeClientFactoryMock();
const thisFirefoxClient = createThisFirefoxClientMock();
runtimeClientFactoryMock.createClientForRuntime = runtime => {
const { RUNTIMES } = require("devtools/client/aboutdebugging-new/src/constants");
if (runtime.id === RUNTIMES.THIS_FIREFOX) {
- return { clientWrapper: thisFirefoxClient };
+ return thisFirefoxClient;
}
throw new Error("Unexpected runtime id " + runtime.id);
};
info("Enable mocks");
enableRuntimeClientFactoryMock(runtimeClientFactoryMock);
registerCleanupFunction(() => {
disableRuntimeClientFactoryMock();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment