1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/addon-sdk/source/test/addons/private-browsing-supported/main.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 +'use strict'; 1.8 + 1.9 +const { merge } = require('sdk/util/object'); 1.10 +const app = require('sdk/system/xul-app'); 1.11 +const { isGlobalPBSupported } = require('sdk/private-browsing/utils'); 1.12 + 1.13 +merge(module.exports, 1.14 + require('./test-tabs'), 1.15 + require('./test-page-mod'), 1.16 + require('./test-private-browsing'), 1.17 + require('./test-sidebar'), 1.18 + isGlobalPBSupported ? require('./test-global-private-browsing') : {} 1.19 +); 1.20 + 1.21 +// Doesn't make sense to test window-utils and windows on fennec, 1.22 +// as there is only one window which is never private. Also ignore 1.23 +// unsupported modules (panel, selection) 1.24 +if (!app.is('Fennec')) { 1.25 + merge(module.exports, 1.26 + require('./test-selection'), 1.27 + require('./test-panel'), 1.28 + require('./test-window-tabs'), 1.29 + require('./test-windows') 1.30 + ); 1.31 +} 1.32 + 1.33 +require('sdk/test/runner').runTestsFromModule(module);