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 { safeMerge: merge } = require('sdk/util/object'); michael@0: const app = require("sdk/system/xul-app"); michael@0: michael@0: // Once Bug 903018 is resolved, just move the application testing to michael@0: // module.metadata.engines michael@0: if (app.is('Firefox')) { michael@0: merge(module.exports, michael@0: require('./tests/test-places-events'), michael@0: require('./tests/test-places-bookmarks'), michael@0: require('./tests/test-places-favicon'), michael@0: require('./tests/test-places-history'), michael@0: require('./tests/test-places-host'), michael@0: require('./tests/test-places-utils') michael@0: ); michael@0: } else { michael@0: exports['test unsupported'] = (assert) => { michael@0: assert.pass('This application is unsupported.'); michael@0: }; michael@0: } michael@0: michael@0: require('sdk/test/runner').runTestsFromModule(module);