2009-09-17 02:03:33 -07:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
|
|
|
#
|
|
|
|
# The Original Code is Extension Manager.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Dave Townsend <dtownsend@oxymoronical.com>.
|
|
|
|
#
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2009
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
|
|
|
|
DEPTH = ../../../../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2010-04-29 13:11:23 -07:00
|
|
|
relativesrcdir = toolkit/mozapps/extensions/test/browser
|
2010-06-16 19:46:11 -07:00
|
|
|
ADDONSRC = $(srcdir)/addons
|
|
|
|
TESTXPI = $(CURDIR)/$(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)/addons
|
2009-09-17 02:03:33 -07:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2010-10-26 10:45:15 -07:00
|
|
|
_MAIN_TEST_FILES = \
|
2010-04-29 13:11:23 -07:00
|
|
|
head.js \
|
2011-01-25 12:15:05 -08:00
|
|
|
browser_about.js \
|
2011-02-16 13:24:41 -08:00
|
|
|
browser_bug523784.js \
|
2010-08-06 09:36:29 -07:00
|
|
|
browser_bug557943.js \
|
2010-08-27 15:23:53 -07:00
|
|
|
browser_bug562797.js \
|
2011-01-11 09:49:50 -08:00
|
|
|
browser_bug562854.js \
|
2010-06-23 16:35:21 -07:00
|
|
|
browser_bug562890.js \
|
2010-06-16 20:13:20 -07:00
|
|
|
browser_bug562899.js \
|
2010-07-19 16:01:23 -07:00
|
|
|
browser_bug562992.js \
|
2010-06-01 18:41:41 -07:00
|
|
|
browser_bug567127.js \
|
2010-07-29 22:08:50 -07:00
|
|
|
browser_bug567137.js \
|
2010-06-24 12:50:04 -07:00
|
|
|
browser_bug572561.js \
|
2010-08-11 09:55:12 -07:00
|
|
|
browser_bug577990.js \
|
2011-01-26 11:12:38 -08:00
|
|
|
browser_bug580298.js \
|
2010-08-27 19:45:11 -07:00
|
|
|
browser_bug581076.js \
|
2011-01-11 15:42:08 -08:00
|
|
|
browser_bug586574.js \
|
2010-09-10 01:20:12 -07:00
|
|
|
browser_bug587970.js \
|
2010-09-02 21:41:06 -07:00
|
|
|
browser_bug591465.js \
|
2010-12-10 13:01:08 -08:00
|
|
|
browser_bug591663.js \
|
2011-01-09 18:58:10 -08:00
|
|
|
browser_bug593535.js \
|
2010-10-18 11:11:05 -07:00
|
|
|
browser_bug596336.js \
|
2010-11-03 11:21:47 -07:00
|
|
|
browser_bug608316.js \
|
2010-11-30 14:19:10 -08:00
|
|
|
browser_bug610764.js \
|
2011-01-07 09:08:13 -08:00
|
|
|
browser_bug618502.js \
|
2010-09-01 09:57:48 -07:00
|
|
|
browser_details.js \
|
2010-09-14 16:27:32 -07:00
|
|
|
browser_discovery.js \
|
2010-06-16 19:46:11 -07:00
|
|
|
browser_dragdrop.js \
|
2010-08-23 10:46:05 -07:00
|
|
|
browser_list.js \
|
2010-07-19 16:01:23 -07:00
|
|
|
browser_searching.js \
|
2010-06-16 20:13:54 -07:00
|
|
|
browser_sorting.js \
|
2010-07-26 12:42:06 -07:00
|
|
|
browser_uninstalling.js \
|
2010-09-28 10:29:24 -07:00
|
|
|
browser_install.js \
|
2010-06-02 02:13:03 -07:00
|
|
|
browser_recentupdates.js \
|
|
|
|
browser_manualupdates.js \
|
2010-09-01 16:40:20 -07:00
|
|
|
browser_globalwarnings.js \
|
2011-05-17 12:57:38 -07:00
|
|
|
browser_globalinformations.js \
|
2010-10-22 10:33:03 -07:00
|
|
|
browser_eula.js \
|
2010-11-24 14:43:51 -08:00
|
|
|
browser_updateid.js \
|
2011-01-07 09:09:09 -08:00
|
|
|
browser_purchase.js \
|
2011-04-28 10:59:26 -07:00
|
|
|
browser_openDialog.js \
|
2011-05-20 10:36:28 -07:00
|
|
|
browser_types.js \
|
2011-05-23 16:03:52 -07:00
|
|
|
browser_inlinesettings.js \
|
2011-06-10 16:11:32 -07:00
|
|
|
browser_tabsettings.js \
|
2010-10-26 10:45:15 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
_TEST_FILES = \
|
|
|
|
head.js \
|
|
|
|
browser_bug557956.js \
|
2011-01-14 14:03:21 -08:00
|
|
|
browser_bug616841.js \
|
2011-01-20 13:45:10 -08:00
|
|
|
browser_bug623950.js \
|
2010-10-26 10:45:15 -07:00
|
|
|
browser_updatessl.js \
|
|
|
|
browser_installssl.js \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
_TEST_RESOURCES = \
|
2011-01-25 12:15:05 -08:00
|
|
|
addon_about.xul \
|
2010-11-02 14:55:05 -07:00
|
|
|
addon_prefs.xul \
|
2010-10-26 10:45:15 -07:00
|
|
|
browser_bug557956.rdf \
|
|
|
|
browser_bug557956_8_2.xpi \
|
|
|
|
browser_bug557956_9_2.xpi \
|
|
|
|
browser_bug591465.xml \
|
2011-01-09 18:58:10 -08:00
|
|
|
browser_bug593535.xml \
|
2010-10-26 10:45:15 -07:00
|
|
|
browser_searching.xml \
|
|
|
|
browser_searching_empty.xml \
|
|
|
|
browser_updatessl.rdf \
|
|
|
|
browser_install.rdf \
|
|
|
|
browser_install.xml \
|
|
|
|
browser_install1_3.xpi \
|
2010-10-22 10:33:03 -07:00
|
|
|
browser_eula.xml \
|
2011-01-07 09:09:09 -08:00
|
|
|
browser_purchase.xml \
|
2010-12-21 10:06:40 -08:00
|
|
|
discovery.html \
|
2011-05-23 16:03:52 -07:00
|
|
|
options.xul \
|
2010-04-29 13:11:23 -07:00
|
|
|
redirect.sjs \
|
2010-06-02 02:13:03 -07:00
|
|
|
releaseNotes.xhtml \
|
2009-09-17 02:03:33 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2010-10-26 10:45:15 -07:00
|
|
|
libs:: $(_MAIN_TEST_FILES)
|
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
|
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)-window
|
|
|
|
|
2009-09-17 02:03:33 -07:00
|
|
|
libs:: $(_TEST_FILES)
|
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
|
2010-06-16 19:46:11 -07:00
|
|
|
|
2010-10-26 10:45:15 -07:00
|
|
|
libs:: $(_TEST_RESOURCES)
|
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
|
|
|
|
|
2010-06-16 19:46:11 -07:00
|
|
|
libs::
|
|
|
|
rm -rf $(TESTXPI)
|
|
|
|
$(NSINSTALL) -D $(TESTXPI)
|
|
|
|
if [ -d $(ADDONSRC) ]; then \
|
|
|
|
$(EXIT_ON_ERROR) \
|
|
|
|
for dir in $(ADDONSRC)/*; do \
|
|
|
|
base=`basename $$dir` ; \
|
|
|
|
(cd $$dir && zip $(TESTXPI)/$$base.xpi *) \
|
|
|
|
done \
|
|
|
|
fi
|