2009-03-18 20:28:42 -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 Mozilla.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# the Mozilla Foundation <http://www.mozilla.org/>.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2008
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Mark Finkle <mfinkle@mozilla.com>
|
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either 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 *****
|
|
|
|
|
2011-11-17 06:10:04 -08:00
|
|
|
DEPTH = ../../../..
|
2009-03-18 20:28:42 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2011-05-04 13:25:24 -07:00
|
|
|
relativesrcdir = mobile/chrome/tests
|
2011-11-05 11:35:59 -07:00
|
|
|
TESTXPI = $(CURDIR)/$(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)/addons
|
2010-10-18 12:02:00 -07:00
|
|
|
ADDONSRC = $(srcdir)/addons
|
2009-03-18 20:28:42 -07:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
_BROWSER_FILES = \
|
2010-03-01 13:10:31 -08:00
|
|
|
head.js \
|
2011-03-30 17:59:55 -07:00
|
|
|
remote_autocomplete.js \
|
2011-05-14 03:27:50 -07:00
|
|
|
remote_contentpopup.js \
|
2010-07-27 15:51:41 -07:00
|
|
|
remote_head.js \
|
2011-06-17 17:09:05 -07:00
|
|
|
remote_focus.js \
|
2010-08-24 01:33:43 -07:00
|
|
|
remote_forms.js \
|
2011-01-14 08:39:16 -08:00
|
|
|
remote_formsZoom.js \
|
2010-11-24 05:54:42 -08:00
|
|
|
remote_vkb.js \
|
2011-01-14 08:39:16 -08:00
|
|
|
browser_addons.js \
|
2011-10-04 13:33:22 -07:00
|
|
|
browser_addons_locales.js \
|
2011-04-08 10:52:09 -07:00
|
|
|
browser_appmenu.js \
|
2011-11-05 18:52:34 -07:00
|
|
|
browser_autocompletesearch.js \
|
|
|
|
$(info browser_awesomescreen.js is disabled because the localepicker is disabled (bug 693524)) \
|
2010-08-24 01:33:43 -07:00
|
|
|
browser_blank_01.html \
|
|
|
|
browser_blank_02.html \
|
2011-09-30 21:30:49 -07:00
|
|
|
browser_blank_03.html \
|
2009-09-02 07:22:50 -07:00
|
|
|
browser_bookmarks.js \
|
2010-08-24 01:33:43 -07:00
|
|
|
browser_contacts.js \
|
2011-05-06 14:03:10 -07:00
|
|
|
browser_dragger.js \
|
2011-09-30 21:30:49 -07:00
|
|
|
browser_escape.js \
|
2010-09-30 13:57:33 -07:00
|
|
|
browser_find.js \
|
2011-06-17 17:09:05 -07:00
|
|
|
browser_focus.html \
|
|
|
|
browser_focus.js \
|
2010-08-24 01:33:43 -07:00
|
|
|
browser_forms.html \
|
2011-03-15 07:30:56 -07:00
|
|
|
$(warning browser_forms.js disabled due to failures) \
|
2011-01-14 08:39:16 -08:00
|
|
|
browser_formsZoom.html \
|
2011-03-15 07:30:56 -07:00
|
|
|
$(warning browser_formsZoom.js disabled due to failures) \
|
2011-11-08 09:00:00 -08:00
|
|
|
$(info browser_history.js is disabled because it is random orange on XUL fennec (bug 700537)) \
|
2011-10-18 11:05:28 -07:00
|
|
|
$(info browser_localepicker.js is disabled because the localepicker is disabled (bug 694047)) \
|
2011-10-06 12:34:14 -07:00
|
|
|
browser_localepicker_escape.js \
|
2010-08-24 01:33:43 -07:00
|
|
|
browser_mainui.js \
|
2010-08-05 07:33:00 -07:00
|
|
|
browser_preferences_text.js \
|
2011-09-02 14:32:00 -07:00
|
|
|
browser_preferences_fulltoggle.js \
|
2010-08-24 01:33:43 -07:00
|
|
|
browser_rect.js \
|
2011-10-31 05:37:00 -07:00
|
|
|
$(info browser_rememberPassword.js is disabled because it is random orange on XUL fennec (bug 698387)) \
|
2011-05-06 08:53:43 -07:00
|
|
|
browser_scroll.js \
|
|
|
|
browser_scroll.html \
|
2011-02-08 14:38:20 -08:00
|
|
|
browser_scrollbar.js \
|
2009-10-14 15:43:20 -07:00
|
|
|
browser_select.html \
|
2010-08-24 01:33:43 -07:00
|
|
|
browser_select.js \
|
|
|
|
browser_sessionstore.js \
|
2011-11-08 09:00:00 -08:00
|
|
|
$(info browser_tabs.js is disabled because it is random orange on XUL fennec (bug 700537)) \
|
2011-10-31 05:37:00 -07:00
|
|
|
$(info browser_tapping.js is disabled because it is random orange on XUL fennec (bug 698387)) \
|
2011-10-31 06:18:03 -07:00
|
|
|
$(info browser_tap_content.html is disabled because it is random orange on XUL fennec (bug 698387)) \
|
2011-08-24 14:24:47 -07:00
|
|
|
browser_tapping_edit.js \
|
|
|
|
browser_tap_contentedit.html \
|
2010-10-05 17:42:55 -07:00
|
|
|
browser_test.js \
|
2010-11-24 05:54:42 -08:00
|
|
|
browser_vkb.js \
|
2011-05-30 04:49:11 -07:00
|
|
|
$(warning browser_viewport.js disabled due to failures) \
|
2011-06-09 09:14:54 -07:00
|
|
|
browser_viewport.sjs \
|
2011-02-08 14:38:20 -08:00
|
|
|
browser_scrollbar.sjs \
|
2010-12-09 08:06:21 -08:00
|
|
|
browser_title.sjs \
|
2011-11-08 09:00:00 -08:00
|
|
|
$(info browser_thumbnails.js is disabled because it is random orange on XUL fennec (bug 700537)) \
|
2010-10-18 12:02:00 -07:00
|
|
|
browser_install.xml \
|
|
|
|
browser_upgrade.rdf\
|
2011-09-29 12:17:26 -07:00
|
|
|
browser_localerepository.js \
|
2011-09-29 12:17:31 -07:00
|
|
|
browser_localerepository_pref.js \
|
2011-09-29 12:17:35 -07:00
|
|
|
browser_localerepository_buildid.js \
|
2011-09-29 12:17:26 -07:00
|
|
|
locales_list.sjs \
|
2011-01-27 11:02:52 -08:00
|
|
|
mock_autocomplete.json\
|
2009-03-18 20:28:42 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2011-05-28 20:25:30 -07:00
|
|
|
ifneq ($(OS_TARGET),Android)
|
2011-05-30 04:49:11 -07:00
|
|
|
_BROWSER_FILES += \
|
2011-06-09 21:13:13 -07:00
|
|
|
browser_autocomplete.html \
|
|
|
|
browser_autocomplete.js \
|
2011-05-30 04:49:11 -07:00
|
|
|
browser_bookmarks_star.js \
|
|
|
|
browser_bookmarks_tags.js \
|
|
|
|
browser_click_content.html \
|
|
|
|
browser_click_content.js \
|
2011-06-09 21:13:13 -07:00
|
|
|
browser_contentpopup.html \
|
|
|
|
browser_contentpopup.js \
|
2011-05-30 04:49:11 -07:00
|
|
|
browser_navigation.js \
|
|
|
|
$(NULL)
|
2010-12-15 12:58:05 -08:00
|
|
|
ifndef MOZ_PLATFORM_MAEMO
|
|
|
|
_BROWSER_FILES += browser_sidebars.js
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2009-03-18 20:28:42 -07:00
|
|
|
libs:: $(_BROWSER_FILES)
|
2011-11-05 11:35:59 -07:00
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
|
2010-10-18 12:02:00 -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
|
|
|
|
|