#
# 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/base/test

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

_TEST_FILES = 	test_bug511075.html \
		test_splitter.xul \
		$(NULL)

_CHROME_FILES =	test_bug381167.xhtml \
		test_bug393970.xul \
		test_bug477754.xul \
		test_stack.xul \
		$(NULL)

ifneq (mobile,$(MOZ_BUILD_APP))
_TEST_FILES = 	test_resizer_incontent.xul

_CHROME_FILES +=	test_resizer.xul \
		window_resizer.xul \
		window_resizer_element.xul \
		$(NULL)
endif

libs:: $(_CHROME_FILES)
	$(INSTALL) $^ $(DEPTH)/_tests/testing/mochitest/chrome/$(relativesrcdir)

libs:: $(_TEST_FILES)
	$(INSTALL) $^ $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
