Bug 535922 - Genereate mobile specific browser chrome test package files r=ted

This commit is contained in:
Joel Maher 2010-05-27 13:01:37 -07:00
Родитель 640a5c490d
Коммит 867c7bed06
12 изменённых файлов: 46 добавлений и 4 удалений

Просмотреть файл

@ -44,10 +44,13 @@ relativesrcdir = docshell/test
MODULE = test_docshell
DIRS += chrome \
browser \
navigation \
$(NULL)
ifeq (browser,$(MOZ_BUILD_APP))
DIRS += browser
endif
XPCSHELL_TESTS = unit
include $(DEPTH)/config/autoconf.mk

Просмотреть файл

@ -45,9 +45,12 @@ include $(DEPTH)/config/autoconf.mk
MODULE = test_dom
DIRS += mochitest \
browser \
$(NULL)
XPCSHELL_TESTS = unit
ifeq (browser,$(MOZ_BUILD_APP))
dirs += browser
endif
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -219,11 +219,13 @@ _VISITED_REFTEST_FILES = \
$(topsrcdir)/layout/reftests/svg/pseudo-classes-02-ref.svg \
$(NULL)
ifeq (browser,$(MOZ_BUILD_APP))
_BROWSER_FILES = \
browser_bug453896.js \
bug453896_iframe.html \
media_queries_iframe.html \
$(NULL)
endif
libs:: $(_TEST_FILES)
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
@ -231,5 +233,7 @@ libs:: $(_TEST_FILES)
libs:: $(_VISITED_REFTEST_FILES)
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)/css-visited/
ifeq (browser,$(MOZ_BUILD_APP))
libs:: $(_BROWSER_FILES)
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
endif

Просмотреть файл

@ -50,9 +50,11 @@ XPCSHELL_TESTS = \
schema_migration \
$(NULL)
ifeq (browser,$(MOZ_BUILD_APP))
DIRS = \
browser \
$(NULL)
endif
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -43,9 +43,11 @@ relativesrcdir = toolkit/components/passwordmgr/test
include $(DEPTH)/config/autoconf.mk
ifeq (browser,$(MOZ_BUILD_APP))
DIRS = \
browser \
$(NULL)
endif
# Module name for xpcshell tests.
MODULE = test_passwordmgr

Просмотреть файл

@ -71,9 +71,12 @@ DIRS = \
chrome \
mochitest/bug_411966 \
mochitest/bug_461710 \
browser \
$(NULL)
ifeq (browser,$(MOZ_BUILD_APP))
DIRS += browser
endif
TOOL_DIRS = \
cpp \
$(NULL)

Просмотреть файл

@ -42,8 +42,10 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
ifeq (browser,$(MOZ_BUILD_APP))
DIRS = \
browser \
$(NULL)
endif
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -47,6 +47,10 @@ MODULE = test_toolkit_general
XPCSHELL_TESTS = unit
DIRS = browser chrome widgets
DIRS = chrome widgets
ifeq (browser,$(MOZ_BUILD_APP))
DIRS += browser
endif
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -77,6 +77,7 @@ endif
include $(topsrcdir)/config/rules.mk
ifeq (browser,$(MOZ_BUILD_APP))
_BROWSER_FILES = \
browser/aboutcrashes_utils.js \
browser/crashreport.sjs \
@ -90,3 +91,10 @@ libs:: $(_BROWSER_FILES)
$(NSINSTALL) -D $(DEPTH)/_tests/xpcshell/$(MODULE)/unit/components
$(INSTALL) $(SHARED_LIBRARY) \
$(DEPTH)/_tests/xpcshell/$(MODULE)/unit/components
else
libs::
$(NSINSTALL) -D $(DEPTH)/_tests/xpcshell/$(MODULE)/unit/components
$(INSTALL) $(SHARED_LIBRARY) \
$(DEPTH)/_tests/xpcshell/$(MODULE)/unit/components
endif

Просмотреть файл

@ -53,6 +53,11 @@ DIRS = \
xpinstall \
$(NULL)
ifeq (browser,$(MOZ_BUILD_APP))
DIRS += browser
endif
XPCSHELL_TESTS = \
xpcshell \
$(NULL)

Просмотреть файл

@ -47,6 +47,7 @@ relativesrcdir = toolkit/mozapps/plugins/tests
TESTROOT = $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
USE_STATIC_LIBS = 1
ifeq (browser,$(MOZ_BUILD_APP))
_BROWSER_FILES = \
browser_bug435788.js \
pfs_bug435788_1.rdf \
@ -54,6 +55,7 @@ _BROWSER_FILES = \
GoodExtension.xpi \
BadExtension.xpi \
$(NULL)
endif
CPPSRCS = \
GoodPlugin.cpp \
@ -73,7 +75,9 @@ $(TESTROOT):
$(PROGRAMS): $(TESTROOT)/% : %$(BIN_SUFFIX)
cp $< $@
ifeq (browser,$(MOZ_BUILD_APP))
libs::
$(INSTALL) $(foreach f,$(_BROWSER_FILES),"$(srcdir)/$f") $(TESTROOT)
libs:: $(PROGRAMS)
endif

Просмотреть файл

@ -43,6 +43,7 @@ relativesrcdir = xpinstall/tests
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/rules.mk
ifeq (browser,$(MOZ_BUILD_APP))
_BROWSER_FILES = harness.js \
browser_unsigned_url.js \
browser_unsigned_trigger.js \
@ -104,3 +105,4 @@ _BROWSER_FILES = harness.js \
libs:: $(_BROWSER_FILES)
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
endif