michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: "use strict"; michael@0: michael@0: const app = require("sdk/system/xul-app"); michael@0: michael@0: if (app.is("Firefox")) { michael@0: module.exports = require("./windows/test-firefox-windows"); michael@0: } michael@0: else if (app.is("Fennec")) { michael@0: module.exports = require("./windows/test-fennec-windows"); michael@0: } michael@0: else { michael@0: require("test").run({ michael@0: "test Unsupported Application": function Unsupported (assert) { michael@0: assert.pass( michael@0: "The windows module currently supports only Firefox and Fennec." + michael@0: "In the future we would like it to support other applications, however." michael@0: ); michael@0: } michael@0: }); michael@0: }