#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH		= ../../..
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@
relativesrcdir  = layout/xul/test

include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/rules.mk

_TEST_FILES =\
		test_bug386386.html \
		test_bug394800.xhtml \
		test_bug563416.html \
		$(NULL)

_CHROME_FILES = \
		test_bug159346.xul \
		test_bug372685.xul \
		test_bug398982-1.xul \
		test_bug398982-2.xul \
		test_bug703150.xul \
		$(NULL)

libs:: $(_TEST_FILES)
	$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)

libs:: $(_CHROME_FILES)
	$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/chrome/$(relativesrcdir)

ifneq (mobile,$(MOZ_BUILD_APP))
_BROWSER_FILES = \
		browser_bug703210.js \
		browser_bug706743.js \
		$(NULL)

libs::	$(_BROWSER_FILES)
	$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
endif
