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: /* michael@0: * Include a module that is unsupported for the current system. michael@0: * The `Unsupported Application` error should be caught by the test loader michael@0: * and no errors should occur michael@0: */ michael@0: if (!app.is('Firefox')) { michael@0: require('./fixtures/loader/unsupported/firefox'); michael@0: } else { michael@0: require('./fixtures/loader/unsupported/fennec'); michael@0: } michael@0: michael@0: exports.testRunning = function (assert) { michael@0: assert.fail('Tests should not run in unsupported applications'); michael@0: }; michael@0: michael@0: require('test').run(exports);