webextension-polyfill/test/integration/test-extensions-in-browser.js

40 lines
1.0 KiB
JavaScript
Raw Normal View History

"use strict";
const {defineExtensionTests} = require("./setup");
defineExtensionTests({
description: "polyfill imported as an ES6 module",
extensions: ["import-as-es6-extension"],
});
defineExtensionTests({
description: "browser.runtime.onMessage/sendMessage",
extensions: ["runtime-messaging-extension"],
});
defineExtensionTests({
description: "browser.runtime.onMessage/sendMessage",
extensions: ["tabs-sendmessage-extension"],
});
defineExtensionTests({
description: "browser.runtime.onMessage/sendMessage",
extensions: ["multiple-onmessage-listeners-extension"],
});
defineExtensionTests({
description: "polyfill should detect an existing browser API object in content scripts and extension pages",
extensions: ["detect-existing-browser-api-object"],
});
defineExtensionTests({
description: "Instance of BrowserSetting API",
extensions: ["privacy-setting-extension"],
});
defineExtensionTests({
description: "browser.devtools",
extensions: ["devtools-extension"],
openDevTools: true,
});